#[non_exhaustive]pub enum OpenOutputError {
Show 27 variants
OutOfMemory,
InvalidArgument,
NotFound,
IOError,
PipeError,
BadFileDescriptor,
NotImplemented,
OperationNotPermitted,
PermissionDenied,
Timeout,
EncoderNotFound,
MatchesNoStreams(String),
InvalidLabel(String),
NotContainStream,
UnknownFrameFormat,
InvalidFileIndexInIntput(usize, String),
UnknownError(i32),
InvalidSink,
SeekFunctionMissing,
FormatUnsupported(String),
UnknownPixelFormat(String),
UnknownSampleFormat(String),
InvalidOption(String),
AttachmentRead(String, Error),
AttachmentEmpty(String),
AttachmentTooLarge(String, u64, u64),
AttachmentEmptyMimetype(String),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
OutOfMemory
InvalidArgument
NotFound
IOError
PipeError
BadFileDescriptor
NotImplemented
OperationNotPermitted
PermissionDenied
Timeout
EncoderNotFound
MatchesNoStreams(String)
InvalidLabel(String)
NotContainStream
UnknownFrameFormat
InvalidFileIndexInIntput(usize, String)
UnknownError(i32)
InvalidSink
SeekFunctionMissing
FormatUnsupported(String)
UnknownPixelFormat(String)
UnknownSampleFormat(String)
InvalidOption(String)
A builder option carried an invalid value (e.g. a malformed
set_force_key_frames spec, an out-of-range set_io_buffer_size).
Setters store values as given and defer validation to open time, so
a bad value surfaces here instead of panicking in the setter or
forcing a Result into the middle of a builder chain.
AttachmentRead(String, Error)
AttachmentEmpty(String)
AttachmentTooLarge(String, u64, u64)
AttachmentEmptyMimetype(String)
Trait Implementations§
Source§impl Debug for OpenOutputError
impl Debug for OpenOutputError
Source§impl Display for OpenOutputError
impl Display for OpenOutputError
Source§impl Error for OpenOutputError
impl Error for OpenOutputError
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<OpenOutputError> for Error
impl From<OpenOutputError> for Error
Source§fn from(source: OpenOutputError) -> Self
fn from(source: OpenOutputError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for OpenOutputError
impl !UnwindSafe for OpenOutputError
impl Freeze for OpenOutputError
impl Send for OpenOutputError
impl Sync for OpenOutputError
impl Unpin for OpenOutputError
impl UnsafeUnpin for OpenOutputError
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