pub struct TransportByteSource<'a, T: ?Sized>(/* private fields */);Expand description
Zero-copy core byte-source adapter over a transport-owned readable port.
Implementations§
Source§impl<'a, T: ?Sized> TransportByteSource<'a, T>
impl<'a, T: ?Sized> TransportByteSource<'a, T>
Trait Implementations§
Source§impl<T: ReadableBytes + ?Sized> ByteSource for TransportByteSource<'_, T>
impl<T: ReadableBytes + ?Sized> ByteSource for TransportByteSource<'_, T>
Source§fn read_at(&self, offset: u64, target: &mut [u8]) -> Result<(), BackendError>
fn read_at(&self, offset: u64, target: &mut [u8]) -> Result<(), BackendError>
Fill
target from the exact logical range beginning at offset.Source§fn as_contiguous(&self) -> Option<&[u8]>
fn as_contiguous(&self) -> Option<&[u8]>
Borrow the complete logical source when it is one contiguous region. Read more
fn is_empty(&self) -> bool
Auto Trait Implementations§
impl<'a, T> Freeze for TransportByteSource<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for TransportByteSource<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for TransportByteSource<'a, T>
impl<'a, T> Sync for TransportByteSource<'a, T>
impl<'a, T> Unpin for TransportByteSource<'a, T>where
T: ?Sized,
impl<'a, T> UnsafeUnpin for TransportByteSource<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for TransportByteSource<'a, T>where
T: RefUnwindSafe + ?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