pub enum RtmpError {
Io(Error),
ChunkRead(ChunkReadError),
Command(CommandError),
ComplexHandshake(ComplexHandshakeError),
Session(ServerSessionError),
}
Expand description
RTMP error.
Variants§
Io(Error)
IO error.
ChunkRead(ChunkReadError)
Chunk read error.
Command(CommandError)
Command error.
ComplexHandshake(ComplexHandshakeError)
Complex handshake error.
Session(ServerSessionError)
Session error.
Implementations§
Trait Implementations§
Source§impl Error for RtmpError
impl Error for RtmpError
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<ChunkReadError> for RtmpError
impl From<ChunkReadError> for RtmpError
Source§fn from(source: ChunkReadError) -> Self
fn from(source: ChunkReadError) -> Self
Converts to this type from the input type.
Source§impl From<CommandError> for RtmpError
impl From<CommandError> for RtmpError
Source§fn from(source: CommandError) -> Self
fn from(source: CommandError) -> Self
Converts to this type from the input type.
Source§impl From<ComplexHandshakeError> for RtmpError
impl From<ComplexHandshakeError> for RtmpError
Source§fn from(source: ComplexHandshakeError) -> Self
fn from(source: ComplexHandshakeError) -> Self
Converts to this type from the input type.
Source§impl From<ServerSessionError> for RtmpError
impl From<ServerSessionError> for RtmpError
Source§fn from(source: ServerSessionError) -> Self
fn from(source: ServerSessionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RtmpError
impl !RefUnwindSafe for RtmpError
impl Send for RtmpError
impl Sync for RtmpError
impl Unpin 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