pub enum VideoLoadError {
ZeroBytes,
ParseMp4(Error),
NoVideoTrack,
InvalidConfigFormat,
InvalidSamples,
NoTimescale,
MimeTypeIsNotAVideo {
provided_or_detected_media_type: String,
},
UnsupportedMimeType {
provided_or_detected_media_type: String,
},
UnrecognizedMimeType,
UnsupportedCodec(FourCC),
UnableToDetermineCodecString,
SpsParsingError(SpsError),
}Expand description
Errors that can occur when loading a video.
Variants§
ZeroBytes
ParseMp4(Error)
NoVideoTrack
InvalidConfigFormat
InvalidSamples
NoTimescale
MimeTypeIsNotAVideo
UnsupportedMimeType
UnrecognizedMimeType
Not used in re_video itself, but useful for media type detection ahead of calling VideoDataDescription::load_from_bytes.
UnsupportedCodec(FourCC)
UnableToDetermineCodecString
SpsParsingError(SpsError)
Trait Implementations§
Source§impl Debug for VideoLoadError
impl Debug for VideoLoadError
Source§impl Display for VideoLoadError
impl Display for VideoLoadError
Source§impl Error for VideoLoadError
impl Error for VideoLoadError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for VideoLoadError
impl From<Error> for VideoLoadError
Source§impl SizeBytes for VideoLoadError
impl SizeBytes for VideoLoadError
Source§fn heap_size_bytes(&self) -> u64
fn heap_size_bytes(&self) -> u64
Returns how many bytes
self uses on the heap. Read moreSource§fn total_size_bytes(&self) -> u64
fn total_size_bytes(&self) -> u64
Returns the total size of
self in bytes, accounting for both stack and heap space.Source§fn stack_size_bytes(&self) -> u64
fn stack_size_bytes(&self) -> u64
Returns the total size of
self on the stack, in bytes. Read moreAuto Trait Implementations§
impl Freeze for VideoLoadError
impl !RefUnwindSafe for VideoLoadError
impl Send for VideoLoadError
impl Sync for VideoLoadError
impl Unpin for VideoLoadError
impl !UnwindSafe for VideoLoadError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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