#[repr(usize)]pub enum ChannelMode {
NoBlockSkip = 0,
NoBlockTrim = 1,
BlockIfFull = 2,
}
Expand description
Specifies what to do when a channel doesn’t have enough buffer space for a complete write.
Variants§
NoBlockSkip = 0
Skip writing the data completely if it doesn’t fit in its entirety.
NoBlockTrim = 1
Write as much as possible of the data and ignore the rest.
BlockIfFull = 2
Block (spin) if the buffer is full. If within a critical section such as inside
rprintln
, this will cause the application to freeze until the host reads from the
buffer.
Trait Implementations§
Source§impl PartialEq for ChannelMode
impl PartialEq for ChannelMode
impl Eq for ChannelMode
impl StructuralPartialEq for ChannelMode
Auto Trait Implementations§
impl Freeze for ChannelMode
impl RefUnwindSafe for ChannelMode
impl Send for ChannelMode
impl Sync for ChannelMode
impl Unpin for ChannelMode
impl UnwindSafe for ChannelMode
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