pub struct TransportByteSink<'a, T: ?Sized>(/* private fields */);Expand description
Zero-copy core byte-sink adapter over a transport-owned writable port.
Implementations§
Source§impl<'a, T: ?Sized> TransportByteSink<'a, T>
impl<'a, T: ?Sized> TransportByteSink<'a, T>
Trait Implementations§
Source§impl<T: WritableBytes + ?Sized> ByteSink for TransportByteSink<'_, T>
impl<T: WritableBytes + ?Sized> ByteSink for TransportByteSink<'_, T>
Source§fn write_at(&mut self, offset: u64, source: &[u8]) -> Result<(), BackendError>
fn write_at(&mut self, offset: u64, source: &[u8]) -> Result<(), BackendError>
Write
source to the exact logical range beginning at offset.Source§fn as_contiguous_mut(&mut self) -> Option<&mut [u8]>
fn as_contiguous_mut(&mut self) -> Option<&mut [u8]>
Mutably borrow the complete logical destination when it is one contiguous region. Read more
fn is_empty(&self) -> bool
Auto Trait Implementations§
impl<'a, T> !UnwindSafe for TransportByteSink<'a, T>
impl<'a, T> Freeze for TransportByteSink<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for TransportByteSink<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for TransportByteSink<'a, T>
impl<'a, T> Sync for TransportByteSink<'a, T>
impl<'a, T> Unpin for TransportByteSink<'a, T>where
T: ?Sized,
impl<'a, T> UnsafeUnpin for TransportByteSink<'a, T>where
T: ?Sized,
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