pub struct FrameProducer<'a, const N: usize> { /* private fields */ }Expand description
A producer of Framed data
Implementations§
Source§impl<'a, const N: usize> FrameProducer<'a, N>
impl<'a, const N: usize> FrameProducer<'a, N>
Sourcepub fn grant(&self, max_sz: usize) -> Result<FrameGrantW<'a, N>>
pub fn grant(&self, max_sz: usize) -> Result<FrameGrantW<'a, N>>
Receive a grant for a frame with a maximum size of max_sz in bytes.
This size does not include the size of the frame header. The exact size
of the frame can be set on commit.
Auto Trait Implementations§
impl<'a, const N: usize> Freeze for FrameProducer<'a, N>
impl<'a, const N: usize> !RefUnwindSafe for FrameProducer<'a, N>
impl<'a, const N: usize> Send for FrameProducer<'a, N>
impl<'a, const N: usize> Sync for FrameProducer<'a, N>
impl<'a, const N: usize> Unpin for FrameProducer<'a, N>
impl<'a, const N: usize> !UnwindSafe for FrameProducer<'a, 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