#[non_exhaustive]pub enum TranscodeError {
Encode(EncodeError),
MissingCachedHeader,
}Expand description
Errors returned by transcode_voice.
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.
Encode(EncodeError)
Underlying encoder rejected the buffer.
MissingCachedHeader
DCS encoding requires the header to be cached on every
frame (including Frame and StreamEnd variants) because
every DCS voice packet embeds the header. The caller must
pass Some for every DCS transcode.
Trait Implementations§
Source§impl Debug for TranscodeError
impl Debug for TranscodeError
Source§impl Display for TranscodeError
impl Display for TranscodeError
Source§impl Error for TranscodeError
impl Error for TranscodeError
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()
Auto Trait Implementations§
impl Freeze for TranscodeError
impl RefUnwindSafe for TranscodeError
impl Send for TranscodeError
impl Sync for TranscodeError
impl Unpin for TranscodeError
impl UnwindSafe for TranscodeError
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