pub enum Access {
ReadOnly,
ReadWrite,
ReadWriteOnce,
WriteOnce,
WriteOnly,
}
Expand description
Defines access rights for fields on the device, though it may be specified at a higher level than individual fields.
Variants§
ReadOnly
Read access is permitted. Write operations have an undefined effect.
ReadWrite
Read and write accesses are permitted.
ReadWriteOnce
Read access is always permitted. Only the first write after a reset will affect the content. Following writes have an undefined effect.
WriteOnce
Read operations have undefined results. Only the first write after a reset will affect the content.
WriteOnly
Read operations have an undefined result. Write access is permitted.
Implementations§
Trait Implementations§
source§impl PartialEq for Access
impl PartialEq for Access
impl Copy for Access
impl Eq for Access
impl StructuralEq for Access
impl StructuralPartialEq for Access
Auto Trait Implementations§
impl RefUnwindSafe for Access
impl Send for Access
impl Sync for Access
impl Unpin for Access
impl UnwindSafe for Access
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