pub struct WriteOnly<I>(pub I);
Expand description
Wrapper around an I/O interface providing write-only access.
Tuple Fields§
§0: I
Implementations§
Source§impl<I: HardwareIo> WriteOnly<I>
impl<I: HardwareIo> WriteOnly<I>
Sourcepub fn write_flags(&mut self, flags: I::Value, value: bool)
pub fn write_flags(&mut self, flags: I::Value, value: bool)
Writes the value to the I/O interface based on the specified flags and value.
§Arguments
flags
- The flags to modify.value
- The value indicating whether to set (true
) or clear (false
) the flags.
Auto Trait Implementations§
impl<I> Freeze for WriteOnly<I>where
I: Freeze,
impl<I> RefUnwindSafe for WriteOnly<I>where
I: RefUnwindSafe,
impl<I> Send for WriteOnly<I>where
I: Send,
impl<I> Sync for WriteOnly<I>where
I: Sync,
impl<I> Unpin for WriteOnly<I>where
I: Unpin,
impl<I> UnwindSafe for WriteOnly<I>where
I: 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