pub enum AttributeAccessMode {
NoAccess = 0,
ReadOnly = 1,
WriteOnly = 2,
ReadWrite = 3,
AuthenticatedReadOnly = 4,
AuthenticatedWriteOnly = 5,
AuthenticatedReadWrite = 6,
}Expand description
Access mode for an attribute (IEC 62056-5-3, 5.3.7.2.2).
Variants§
NoAccess = 0
No access to this attribute.
ReadOnly = 1
Read-only access.
WriteOnly = 2
Write-only access.
ReadWrite = 3
Read and write access.
AuthenticatedReadOnly = 4
Authenticated read-only access.
AuthenticatedWriteOnly = 5
Authenticated write-only access.
AuthenticatedReadWrite = 6
Authenticated read and write access.
Implementations§
Source§impl AttributeAccessMode
impl AttributeAccessMode
Sourcepub fn allows_read(&self) -> bool
pub fn allows_read(&self) -> bool
Whether this mode allows reading.
Sourcepub fn allows_write(&self) -> bool
pub fn allows_write(&self) -> bool
Whether this mode allows writing.
Sourcepub fn requires_auth(&self) -> bool
pub fn requires_auth(&self) -> bool
Whether this mode requires authentication.
Trait Implementations§
Source§impl Clone for AttributeAccessMode
impl Clone for AttributeAccessMode
Source§fn clone(&self) -> AttributeAccessMode
fn clone(&self) -> AttributeAccessMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AttributeAccessMode
Source§impl Debug for AttributeAccessMode
impl Debug for AttributeAccessMode
impl Eq for AttributeAccessMode
Source§impl PartialEq for AttributeAccessMode
impl PartialEq for AttributeAccessMode
impl StructuralPartialEq for AttributeAccessMode
Auto Trait Implementations§
impl Freeze for AttributeAccessMode
impl RefUnwindSafe for AttributeAccessMode
impl Send for AttributeAccessMode
impl Sync for AttributeAccessMode
impl Unpin for AttributeAccessMode
impl UnsafeUnpin for AttributeAccessMode
impl UnwindSafe for AttributeAccessMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more