#[non_exhaustive]pub enum LiveInputChunkDecodeError {
InvalidAudioBase64(DecodeError),
InvalidImageBase64(DecodeError),
InvalidVideoFrameBase64(DecodeError),
}Expand description
Typed failure decoding a wire-format LiveInputChunkWire into the core
LiveInputChunk. Each base64 field that can be malformed lands in a
distinct variant so callers route on the typed class instead of reparsing a
prose 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.
InvalidAudioBase64(DecodeError)
The audio chunk’s base64 data field was not valid base64.
InvalidImageBase64(DecodeError)
The image chunk’s base64 data field was not valid base64.
InvalidVideoFrameBase64(DecodeError)
The video-frame chunk’s base64 data field was not valid base64.
Trait Implementations§
Source§impl Debug for LiveInputChunkDecodeError
impl Debug for LiveInputChunkDecodeError
Source§impl Display for LiveInputChunkDecodeError
impl Display for LiveInputChunkDecodeError
Source§impl Error for LiveInputChunkDecodeError
impl Error for LiveInputChunkDecodeError
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 LiveInputChunkDecodeError
impl RefUnwindSafe for LiveInputChunkDecodeError
impl Send for LiveInputChunkDecodeError
impl Sync for LiveInputChunkDecodeError
impl Unpin for LiveInputChunkDecodeError
impl UnsafeUnpin for LiveInputChunkDecodeError
impl UnwindSafe for LiveInputChunkDecodeError
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