#[non_exhaustive]pub enum RtmpError {
BufferTooShort {
need: usize,
have: usize,
what: &'static str,
},
Malformed {
what: &'static str,
},
UnexpectedState {
what: &'static str,
},
Unsupported {
what: &'static str,
},
}Expand description
Errors produced by the RTMP ingest session engine.
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.
BufferTooShort
Not enough input bytes were available to parse a complete structure (handshake message, chunk header, or reassembled RTMP message).
Fields
Malformed
The input did not conform to the expected wire layout (bad handshake
version, invalid chunk fmt/CSID encoding, malformed AMF0 value, or
similar).
UnexpectedState
An operation was attempted that is not valid in the session’s current
state (e.g. a command received before the handshake completed, or
publish before createStream).
Unsupported
The input used a feature or value this engine does not (yet) support (e.g. AMF3, an unrecognised command name).
Trait Implementations§
Source§impl Error for RtmpError
impl Error for RtmpError
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()
Auto Trait Implementations§
impl Freeze for RtmpError
impl RefUnwindSafe for RtmpError
impl Send for RtmpError
impl Sync for RtmpError
impl Unpin for RtmpError
impl UnsafeUnpin for RtmpError
impl UnwindSafe for RtmpError
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