pub struct StreamChunks<T: Sample> { /* private fields */ }Expand description
Stream to PDU block.
Implementations§
Source§impl<T: Sample> StreamChunks<T>
impl<T: Sample> StreamChunks<T>
pub fn new( src: ReadStream<T>, size: usize, ) -> (Self, <NCWriteStream<Vec<T>> as StreamReadSide>::ReadSide)
Trait Implementations§
Source§impl<T: Sample> Block for StreamChunks<T>
impl<T: Sample> Block for StreamChunks<T>
Source§impl<T: Sample> BlockEOF for StreamChunks<T>
impl<T: Sample> BlockEOF for StreamChunks<T>
Source§impl<T: Sample> BlockName for StreamChunks<T>
impl<T: Sample> BlockName for StreamChunks<T>
Source§fn block_name(&self) -> &str
fn block_name(&self) -> &str
Name of block Read more
Auto Trait Implementations§
impl<T> Freeze for StreamChunks<T>
impl<T> RefUnwindSafe for StreamChunks<T>where
T: RefUnwindSafe,
impl<T> Send for StreamChunks<T>
impl<T> Sync for StreamChunks<T>
impl<T> Unpin for StreamChunks<T>
impl<T> UnsafeUnpin for StreamChunks<T>
impl<T> UnwindSafe for StreamChunks<T>where
T: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more