Trait rotary::Channels [−][src]
A trait describing something that has channels.
Required methods
pub fn channel(&self, channel: usize) -> Channel<'_, T>
[src]
Return a handler to the buffer associated with the channel.
Note that we don’t access the buffer for the underlying channel directly
as a linear buffer like &[T]
, because the underlying representation
might be different.
We must instead make use of the various utility functions found on Channel to copy data out of the channel.
Panics
Panics if the specified channel is out of bound as reported by Buf::channels.
Implementations on Foreign Types
impl<'_, B, T> Channels<T> for &'_ mut B where
B: Channels<T> + ?Sized,
[src]
B: Channels<T> + ?Sized,
impl<T> Channels<T> for Vec<Vec<T, Global>, Global>
[src]
impl<'_, B, T> Channels<T> for &'_ B where
B: Channels<T>,
[src]
B: Channels<T>,
impl<T> Channels<T> for [Vec<T, Global>]
[src]
Loading content...Implementors
impl<B, T> Channels<T> for Read<B> where
B: Channels<T>,
[src]
B: Channels<T>,
impl<B, T> Channels<T> for ReadWrite<B> where
B: Channels<T>,
[src]
B: Channels<T>,
impl<B, T> Channels<T> for Write<B> where
B: Channels<T>,
[src]
B: Channels<T>,