pub struct Parser<R, C: ReadCapability = NonSeekable> { /* private fields */ }Implementations§
Source§impl<R: AsyncRead + AsyncSeek + Unpin + Send> Parser<R, Seekable>
impl<R: AsyncRead + AsyncSeek + Unpin + Send> Parser<R, Seekable>
pub fn new_seekable(reader: R) -> Self
Sourcepub async fn parse_metadata(self) -> Result<MdatParser<R, Seekable>, ParseError>
pub async fn parse_metadata(self) -> Result<MdatParser<R, Seekable>, ParseError>
parses metadata atoms, both before and after mdat if moov isn’t found before
Source§impl<R: AsyncRead + Unpin + Send> Parser<R, NonSeekable>
impl<R: AsyncRead + Unpin + Send> Parser<R, NonSeekable>
pub fn new(reader: R) -> Self
Sourcepub async fn parse_metadata(
self,
) -> Result<MdatParser<R, NonSeekable>, ParseError>
pub async fn parse_metadata( self, ) -> Result<MdatParser<R, NonSeekable>, ParseError>
parses metadata atoms until mdat found
Auto Trait Implementations§
impl<R, C> Freeze for Parser<R, C>where
R: Freeze,
impl<R, C> RefUnwindSafe for Parser<R, C>where
R: RefUnwindSafe,
C: RefUnwindSafe,
impl<R, C> Send for Parser<R, C>
impl<R, C> Sync for Parser<R, C>
impl<R, C> Unpin for Parser<R, C>
impl<R, C> UnsafeUnpin for Parser<R, C>where
R: UnsafeUnpin,
impl<R, C> UnwindSafe for Parser<R, C>where
R: UnwindSafe,
C: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more