probe_rs::rtt

Trait RttChannel

Source
pub trait RttChannel {
    // Required methods
    fn number(&self) -> usize;
    fn name(&self) -> Option<&str>;
    fn buffer_size(&self) -> usize;
}
Expand description

Trait for channel information shared between up and down channels.

Required Methods§

Source

fn number(&self) -> usize

Returns the number of the channel.

Source

fn name(&self) -> Option<&str>

Returns the name of the channel or None if there is none.

Source

fn buffer_size(&self) -> usize

Returns the buffer size in bytes. Note that the usable size is one byte less due to how the ring buffer is implemented.

Implementors§