pub enum PackagerError {
Show 17 variants
Io(Error),
InvalidConfig(String),
UnsupportedCodec(String),
InvalidLadder(String),
SegmentFailed(String),
ManifestFailed(String),
EncryptionError(String),
InvalidSource(String),
MissingParameter(String),
AlignmentFailed(String),
DrmFailed(String),
UploadFailed(String),
PackagingError(String),
Core(OxiError),
Json(Error),
Xml(Error),
Time(String),
}Expand description
Errors that can occur during packaging operations.
Variants§
Io(Error)
I/O error occurred.
InvalidConfig(String)
Invalid configuration parameter.
UnsupportedCodec(String)
Unsupported codec for packaging.
InvalidLadder(String)
Invalid bitrate ladder configuration.
SegmentFailed(String)
Segment generation failed.
ManifestFailed(String)
Manifest generation failed.
EncryptionError(String)
Encryption error.
InvalidSource(String)
Invalid media source.
MissingParameter(String)
Missing required parameter.
AlignmentFailed(String)
Keyframe alignment failed.
DrmFailed(String)
DRM preparation failed.
UploadFailed(String)
Cloud upload failed.
PackagingError(String)
Generic packaging error.
Core(OxiError)
Core library error.
Json(Error)
JSON serialization error.
Xml(Error)
XML serialization error.
Time(String)
Time parsing error.
Implementations§
Source§impl PackagerError
impl PackagerError
Sourcepub fn invalid_config(msg: impl Into<String>) -> Self
pub fn invalid_config(msg: impl Into<String>) -> Self
Create an invalid configuration error.
Sourcepub fn unsupported_codec(msg: impl Into<String>) -> Self
pub fn unsupported_codec(msg: impl Into<String>) -> Self
Create an unsupported codec error.
Sourcepub fn segment_failed(msg: impl Into<String>) -> Self
pub fn segment_failed(msg: impl Into<String>) -> Self
Create a segment failed error.
Sourcepub fn manifest_failed(msg: impl Into<String>) -> Self
pub fn manifest_failed(msg: impl Into<String>) -> Self
Create a manifest failed error.
Trait Implementations§
Source§impl Debug for PackagerError
impl Debug for PackagerError
Source§impl Display for PackagerError
impl Display for PackagerError
Source§impl Error for PackagerError
impl Error for PackagerError
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 PackagerError
impl From<Error> for PackagerError
Source§impl From<Error> for PackagerError
impl From<Error> for PackagerError
Source§impl From<Error> for PackagerError
impl From<Error> for PackagerError
Auto Trait Implementations§
impl !RefUnwindSafe for PackagerError
impl !UnwindSafe for PackagerError
impl Freeze for PackagerError
impl Send for PackagerError
impl Sync for PackagerError
impl Unpin for PackagerError
impl UnsafeUnpin for PackagerError
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 moreSource§impl<E> OxiErrorExt for Ewhere
E: Error,
impl<E> OxiErrorExt for Ewhere
E: Error,
Source§fn with_oxi_context(self, frame: ErrorFrame) -> OxiError
fn with_oxi_context(self, frame: ErrorFrame) -> OxiError
Wraps
self by prepending the frame’s display string as context.