pub struct MediaError {
pub code: i32,
pub name: String,
pub message: String,
}Expand description
Represents an error that can occur during media processing.
Fields§
§code: i32A numeric error code assigned to the error.
name: StringA short name given to the error.
message: StringThe full text of the error message.
Trait Implementations§
Source§impl Clone for MediaError
impl Clone for MediaError
Source§fn clone(&self) -> MediaError
fn clone(&self) -> MediaError
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 Debug for MediaError
impl Debug for MediaError
Source§impl<'de> Deserialize<'de> for MediaError
impl<'de> Deserialize<'de> for MediaError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MediaError
impl Display for MediaError
Source§impl Error for MediaError
impl Error for MediaError
1.30.0 · 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<MediaError> for Error
impl From<MediaError> for Error
Source§fn from(source: MediaError) -> Self
fn from(source: MediaError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MediaError
impl PartialEq for MediaError
impl StructuralPartialEq for MediaError
Auto Trait Implementations§
impl Freeze for MediaError
impl RefUnwindSafe for MediaError
impl Send for MediaError
impl Sync for MediaError
impl Unpin for MediaError
impl UnwindSafe for MediaError
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