Struct mp4san::SeekSkipAdapter
source · pub struct SeekSkipAdapter<T>(pub T)
where
T: ?Sized;
Expand description
Tuple Fields§
§0: T
Trait Implementations§
source§impl<T> AsyncRead for SeekSkipAdapter<T>
impl<T> AsyncRead for SeekSkipAdapter<T>
source§impl<R> AsyncSkip for SeekSkipAdapter<R>
impl<R> AsyncSkip for SeekSkipAdapter<R>
source§fn poll_skip(
self: Pin<&mut SeekSkipAdapter<R>>,
cx: &mut Context<'_>,
amount: u64
) -> Poll<Result<(), Error>>
fn poll_skip( self: Pin<&mut SeekSkipAdapter<R>>, cx: &mut Context<'_>, amount: u64 ) -> Poll<Result<(), Error>>
Skip an amount of bytes in a stream. Read more
source§fn poll_stream_position(
self: Pin<&mut SeekSkipAdapter<R>>,
cx: &mut Context<'_>
) -> Poll<Result<u64, Error>>
fn poll_stream_position( self: Pin<&mut SeekSkipAdapter<R>>, cx: &mut Context<'_> ) -> Poll<Result<u64, Error>>
Returns the current position of the cursor from the start of the stream.
source§fn poll_stream_len(
self: Pin<&mut SeekSkipAdapter<R>>,
cx: &mut Context<'_>
) -> Poll<Result<u64, Error>>
fn poll_stream_len( self: Pin<&mut SeekSkipAdapter<R>>, cx: &mut Context<'_> ) -> Poll<Result<u64, Error>>
Returns the length of this stream, in bytes.
source§impl<T> Clone for SeekSkipAdapter<T>
impl<T> Clone for SeekSkipAdapter<T>
source§impl<T> Debug for SeekSkipAdapter<T>
impl<T> Debug for SeekSkipAdapter<T>
source§impl<T> Default for SeekSkipAdapter<T>
impl<T> Default for SeekSkipAdapter<T>
source§impl<T> Deref for SeekSkipAdapter<T>where
T: ?Sized,
impl<T> Deref for SeekSkipAdapter<T>where
T: ?Sized,
source§impl<T> DerefMut for SeekSkipAdapter<T>where
T: ?Sized,
impl<T> DerefMut for SeekSkipAdapter<T>where
T: ?Sized,
source§impl<T> Read for SeekSkipAdapter<T>
impl<T> Read for SeekSkipAdapter<T>
source§fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>
Pull some bytes from this source into the specified buffer, returning
how many bytes were read. Read more
1.36.0 · source§fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>
fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>
Like
read
, except that it reads into a slice of buffers. Read moresource§fn is_read_vectored(&self) -> bool
fn is_read_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (
can_vector
)1.0.0 · source§fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Error>
fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Error>
Read all bytes until EOF in this source, placing them into
buf
. Read more1.0.0 · source§fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>
fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>
Read all bytes until EOF in this source, appending them to
buf
. Read more1.6.0 · source§fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>
fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>
Read the exact number of bytes required to fill
buf
. Read moresource§fn read_buf(&mut self, buf: BorrowedCursor<'_>) -> Result<(), Error>
fn read_buf(&mut self, buf: BorrowedCursor<'_>) -> Result<(), Error>
🔬This is a nightly-only experimental API. (
read_buf
)Pull some bytes from this source into the specified buffer. Read more
source§fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>
fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>
🔬This is a nightly-only experimental API. (
read_buf
)Read the exact number of bytes required to fill
cursor
. Read moresource§impl<T> Skip for SeekSkipAdapter<T>where
T: Seek,
impl<T> Skip for SeekSkipAdapter<T>where
T: Seek,
impl<T> Copy for SeekSkipAdapter<T>
Auto Trait Implementations§
impl<T: ?Sized> RefUnwindSafe for SeekSkipAdapter<T>where
T: RefUnwindSafe,
impl<T: ?Sized> Send for SeekSkipAdapter<T>where
T: Send,
impl<T: ?Sized> Sync for SeekSkipAdapter<T>where
T: Sync,
impl<T: ?Sized> Unpin for SeekSkipAdapter<T>where
T: Unpin,
impl<T: ?Sized> UnwindSafe for SeekSkipAdapter<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<R> AsyncReadExt for Rwhere
R: AsyncRead + ?Sized,
impl<R> AsyncReadExt for Rwhere
R: AsyncRead + ?Sized,
source§fn chain<R>(self, next: R) -> Chain<Self, R>where
Self: Sized,
R: AsyncRead,
fn chain<R>(self, next: R) -> Chain<Self, R>where
Self: Sized,
R: AsyncRead,
Creates an adaptor which will chain this stream with another. Read more
source§fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> Read<'a, Self>where
Self: Unpin,
fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> Read<'a, Self>where
Self: Unpin,
Tries to read some bytes directly into the given
buf
in asynchronous
manner, returning a future type. Read moresource§fn read_vectored<'a>(
&'a mut self,
bufs: &'a mut [IoSliceMut<'a>]
) -> ReadVectored<'a, Self>where
Self: Unpin,
fn read_vectored<'a>(
&'a mut self,
bufs: &'a mut [IoSliceMut<'a>]
) -> ReadVectored<'a, Self>where
Self: Unpin,
Creates a future which will read from the
AsyncRead
into bufs
using vectored
IO operations. Read moresource§fn read_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadExact<'a, Self>where
Self: Unpin,
fn read_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadExact<'a, Self>where
Self: Unpin,
Creates a future which will read exactly enough bytes to fill
buf
,
returning an error if end of file (EOF) is hit sooner. Read moresource§fn read_to_end<'a>(&'a mut self, buf: &'a mut Vec<u8>) -> ReadToEnd<'a, Self>where
Self: Unpin,
fn read_to_end<'a>(&'a mut self, buf: &'a mut Vec<u8>) -> ReadToEnd<'a, Self>where
Self: Unpin,
Creates a future which will read all the bytes from this
AsyncRead
. Read moresource§fn read_to_string<'a>(
&'a mut self,
buf: &'a mut String
) -> ReadToString<'a, Self>where
Self: Unpin,
fn read_to_string<'a>(
&'a mut self,
buf: &'a mut String
) -> ReadToString<'a, Self>where
Self: Unpin,
Creates a future which will read all the bytes from this
AsyncRead
. Read moresource§impl<T> AsyncSkipExt for T
impl<T> AsyncSkipExt for T
source§fn skip(&mut self, amount: u64) -> Skip<'_, Self>
fn skip(&mut self, amount: u64) -> Skip<'_, Self>
Skip an amount of bytes in a stream. Read more
source§fn stream_position(&mut self) -> StreamPosition<'_, Self>
fn stream_position(&mut self) -> StreamPosition<'_, Self>
Returns the current position of the cursor from the start of the stream.
source§fn stream_len(&mut self) -> StreamLen<'_, Self>
fn stream_len(&mut self) -> StreamLen<'_, Self>
Returns the length of this stream, in bytes.
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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.