Enum rtt_target::ChannelMode
source · #[repr(usize)]
pub enum ChannelMode {
NoBlockSkip,
NoBlockTrim,
BlockIfFull,
}
Expand description
Specifies what to do when a channel doesn’t have enough buffer space for a complete write.
Variants§
NoBlockSkip
Skip writing the data completely if it doesn’t fit in its entirety.
NoBlockTrim
Write as much as possible of the data and ignore the rest.
BlockIfFull
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<ChannelMode> for ChannelMode
impl PartialEq<ChannelMode> for ChannelMode
source§fn eq(&self, other: &ChannelMode) -> bool
fn eq(&self, other: &ChannelMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.