Enum rtt_target::ChannelMode[][src]

#[repr(usize)]
pub enum ChannelMode {
    NoBlockSkip,
    NoBlockTrim,
    BlockIfFull,
}

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

impl Eq for ChannelMode[src]

impl PartialEq<ChannelMode> for ChannelMode[src]

impl StructuralEq for ChannelMode[src]

impl StructuralPartialEq for ChannelMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.