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
impl Copy 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more