pub enum AccessSpec {
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.
§Values
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.
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 Clone for AccessSpec
impl Clone for AccessSpec
Source§fn clone(&self) -> AccessSpec
fn clone(&self) -> AccessSpec
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AccessSpec
impl Debug for AccessSpec
Source§impl PartialEq for AccessSpec
impl PartialEq for AccessSpec
impl Copy for AccessSpec
impl StructuralPartialEq for AccessSpec
Auto Trait Implementations§
impl Freeze for AccessSpec
impl RefUnwindSafe for AccessSpec
impl Send for AccessSpec
impl Sync for AccessSpec
impl Unpin for AccessSpec
impl UnwindSafe for AccessSpec
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