#[repr(u32)]pub enum StreamError {
Unknown = 1,
InvalidInputFormatDetails = 2,
IncompatibleBuffersProvided = 3,
EosProcessing = 4,
DecoderUnknown = 16_777_217,
DecoderDataParsing = 16_777_218,
EncoderUnknown = 33_554_433,
DecryptorUnknown = 50_331_649,
DecryptorNoKey = 50_331_650,
}
Expand description
StreamError
This error code encapsulates various errors that might emanate from a StreamProcessor server. It can be sent either as an OnStreamFailed event or as an epitaph for the channel.
Variants§
Unknown = 1
An internal error with an unspecified reason.
InvalidInputFormatDetails = 2
The client provided invalid input format details.
IncompatibleBuffersProvided = 3
The server received buffers that are not suitable for the operation to be performed. An example of this would be if a Decoder received output buffers that are too small to decode a frame into.
EosProcessing = 4
Processing of input EOS (end of stream) failed, so the stream failed. Currently this can occur if a core codec watchdog fires while processing EOS.
DecoderUnknown = 16_777_217
An internal decoder error with an unspecified reason.
DecoderDataParsing = 16_777_218
Input data that can’t be parsed. Only some parsing problems/errors are reported this way. Corrupt input data may be reported as other StreamError, or may not cause a StreamError.
EncoderUnknown = 33_554_433
An internal encoder error with an unspecified reason.
DecryptorUnknown = 50_331_649
An internal decryptor error with an unspecified reason.
DecryptorNoKey = 50_331_650
The requested KeyId is not available for use by the Decryptor. The client may try again later if that key becomes available.
Implementations§
Source§impl StreamError
impl StreamError
pub fn from_primitive(prim: u32) -> Option<Self>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
is_unknown
Trait Implementations§
Source§impl Clone for StreamError
impl Clone for StreamError
Source§fn clone(&self) -> StreamError
fn clone(&self) -> StreamError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for StreamError
impl Debug for StreamError
Source§impl<D: ResourceDialect> Decode<StreamError, D> for StreamError
impl<D: ResourceDialect> Decode<StreamError, D> for StreamError
Source§impl<D: ResourceDialect> Encode<StreamError, D> for StreamError
impl<D: ResourceDialect> Encode<StreamError, D> for StreamError
Source§impl Hash for StreamError
impl Hash for StreamError
Source§impl Ord for StreamError
impl Ord for StreamError
Source§fn cmp(&self, other: &StreamError) -> Ordering
fn cmp(&self, other: &StreamError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for StreamError
impl PartialEq for StreamError
Source§impl PartialOrd for StreamError
impl PartialOrd for StreamError
Source§impl TypeMarker for StreamError
impl TypeMarker for StreamError
Source§type Owned = StreamError
type Owned = StreamError
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for StreamError
impl ValueTypeMarker for StreamError
Source§type Borrowed<'a> = StreamError
type Borrowed<'a> = StreamError
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for StreamError
impl Eq for StreamError
impl StructuralPartialEq for StreamError
Auto Trait Implementations§
impl Freeze for StreamError
impl RefUnwindSafe for StreamError
impl Send for StreamError
impl Sync for StreamError
impl Unpin for StreamError
impl UnwindSafe for StreamError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)