pub struct DmaTxStreamBufView { /* private fields */ }Available on crate feature
unstable only.Expand description
A view into a DmaTxStreamBuf.
Implementations§
Source§impl DmaTxStreamBufView
impl DmaTxStreamBufView
Sourcepub fn available_bytes(&mut self) -> usize
pub fn available_bytes(&mut self) -> usize
Returns the number of bytes available for writing.
Sourcepub fn push_with(&mut self, f: impl FnOnce(&mut [u8]) -> usize) -> usize
pub fn push_with(&mut self, f: impl FnOnce(&mut [u8]) -> usize) -> usize
Pushes a buffer into the stream buffer. Returns the number of bytes pushed.
Auto Trait Implementations§
impl !Sync for DmaTxStreamBufView
impl !UnwindSafe for DmaTxStreamBufView
impl Freeze for DmaTxStreamBufView
impl RefUnwindSafe for DmaTxStreamBufView
impl Send for DmaTxStreamBufView
impl Unpin for DmaTxStreamBufView
impl UnsafeUnpin for DmaTxStreamBufView
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