pub(crate) enum StreamBuf<'d> {
Borrowed(&'d mut [u8]),
Owned(Vec<u8>),
}
Expand description
An owned or borrowed buffer for stream operations.
Variants§
Auto Trait Implementations§
impl<'d> Freeze for StreamBuf<'d>
impl<'d> RefUnwindSafe for StreamBuf<'d>
impl<'d> Send for StreamBuf<'d>
impl<'d> Sync for StreamBuf<'d>
impl<'d> Unpin for StreamBuf<'d>
impl<'d> !UnwindSafe for StreamBuf<'d>
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