pub enum RegisterOperation<T> {
Read(Option<T>),
Write(T),
}Expand description
An operation for a register.
Variants§
Read(Option<T>)
Read a value of type T from the register.
If the return value of the operation is not-yet-known, then this can be
represented as Read(None).
Write(T)
Write a value of type T to the register.
Trait Implementations§
Source§impl<T: Clone> Clone for RegisterOperation<T>
impl<T: Clone> Clone for RegisterOperation<T>
Source§fn clone(&self) -> RegisterOperation<T>
fn clone(&self) -> RegisterOperation<T>
Returns a duplicate 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<T: Debug> Debug for RegisterOperation<T>
impl<T: Debug> Debug for RegisterOperation<T>
impl<T: Copy> Copy for RegisterOperation<T>
Auto Trait Implementations§
impl<T> Freeze for RegisterOperation<T>where
T: Freeze,
impl<T> RefUnwindSafe for RegisterOperation<T>where
T: RefUnwindSafe,
impl<T> Send for RegisterOperation<T>where
T: Send,
impl<T> Sync for RegisterOperation<T>where
T: Sync,
impl<T> Unpin for RegisterOperation<T>where
T: Unpin,
impl<T> UnwindSafe for RegisterOperation<T>where
T: UnwindSafe,
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