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§
Sourcefn buffer_size(&self) -> usize
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.