Skip to main content

ChannelInfo

Trait ChannelInfo 

Source
pub trait ChannelInfo {
    // Required methods
    fn num_channels(&self, direction: Direction) -> Result<usize, Error>;
    fn full_duplex(
        &self,
        direction: Direction,
        channel: usize,
    ) -> Result<bool, Error>;
}
Expand description

Basic channel metadata.

Required Methods§

Source

fn num_channels(&self, direction: Direction) -> Result<usize, Error>

Number of supported channels.

Source

fn full_duplex( &self, direction: Direction, channel: usize, ) -> Result<bool, Error>

Full-duplex support.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§