pub struct StreamStorage<const N: usize> { /* private fields */ }Expand description
Caller-owned storage + byte buffer for a Stream in zero-heap mode.
Declare in a static and pass &STORAGE to Stream::create; in heap
mode it is ignored. See crate::MutexStorage; this one additionally
embeds the [u8; N] ring buffer the stream needs.
Implementations§
Trait Implementations§
Source§impl<const N: usize> Default for StreamStorage<N>
impl<const N: usize> Default for StreamStorage<N>
impl<const N: usize> Sync for StreamStorage<N>
Auto Trait Implementations§
impl<const N: usize> !Freeze for StreamStorage<N>
impl<const N: usize> !RefUnwindSafe for StreamStorage<N>
impl<const N: usize> Send for StreamStorage<N>
impl<const N: usize> Unpin for StreamStorage<N>
impl<const N: usize> UnsafeUnpin for StreamStorage<N>
impl<const N: usize> UnwindSafe for StreamStorage<N>
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