pub struct SliceSource<'a> { /* private fields */ }Implementations§
Source§impl<'a> SliceSource<'a>
impl<'a> SliceSource<'a>
Trait Implementations§
Source§impl<'a> Clone for SliceSource<'a>
impl<'a> Clone for SliceSource<'a>
Source§fn clone(&self) -> SliceSource<'a>
fn clone(&self) -> SliceSource<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SliceSource<'a>
impl<'a> Debug for SliceSource<'a>
Source§impl Source for SliceSource<'_>
impl Source for SliceSource<'_>
Source§type Error = Infallible
type Error = Infallible
The error produced when the source failed to read more data.
Source§fn request(&mut self, _len: usize) -> Result<usize, Self::Error>
fn request(&mut self, _len: usize) -> Result<usize, Self::Error>
Request at least
len bytes to be available. Read moreSource§fn bytes(&self, start: usize, end: usize) -> Bytes
fn bytes(&self, start: usize, end: usize) -> Bytes
Produces a
Bytes value from part of the data. Read moreSource§fn skip(&mut self, len: usize) -> Result<usize, Self::Error>
fn skip(&mut self, len: usize) -> Result<usize, Self::Error>
Skip over the next
len bytes. Read moreSource§fn take_u8(&mut self) -> Result<u8, DecodeError<Self::Error>>
fn take_u8(&mut self) -> Result<u8, DecodeError<Self::Error>>
Takes a single octet from the source. Read more
Source§fn take_opt_u8(&mut self) -> Result<Option<u8>, Self::Error>
fn take_opt_u8(&mut self) -> Result<Option<u8>, Self::Error>
Takes an optional octet from the source. Read more
Source§fn content_err(&self, err: impl Into<ContentError>) -> DecodeError<Self::Error>
fn content_err(&self, err: impl Into<ContentError>) -> DecodeError<Self::Error>
Returns a content error at the current position of the source.
impl<'a> Copy for SliceSource<'a>
Auto Trait Implementations§
impl<'a> Freeze for SliceSource<'a>
impl<'a> RefUnwindSafe for SliceSource<'a>
impl<'a> Send for SliceSource<'a>
impl<'a> Sync for SliceSource<'a>
impl<'a> Unpin for SliceSource<'a>
impl<'a> UnwindSafe for SliceSource<'a>
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