pub enum RtspError {
Io(Error),
InvalidBindAddress(String),
SessionNotFound(String),
TransportNotConfigured(String),
SessionNotPlaying(String),
NotStarted,
AlreadyRunning,
Parse {
kind: ParseErrorKind,
},
PortRangeExhausted,
MountNotFound(String),
}Expand description
Errors that can occur in the RTSP server library.
Variants map to specific failure modes across the stack:
- Protocol:
Parse— malformed RTSP messages. - Transport:
Io— socket/network failures. - Session:
SessionNotFound,SessionNotPlaying,TransportNotConfigured. - Server:
NotStarted,AlreadyRunning. - Mount:
MountNotFound. - Server:
InvalidBindAddress— bind address must have an explicit non-zero port.
Variants§
Io(Error)
Underlying I/O or socket error.
InvalidBindAddress(String)
Bind address must be host:port with an explicit non-zero port (port 0 is not allowed).
SessionNotFound(String)
No session with the given ID exists in the SessionManager.
TransportNotConfigured(String)
SETUP has not been completed for this session (no UDP ports negotiated).
SessionNotPlaying(String)
Attempted to send media to a session that is not in the Playing state.
NotStarted
Server::start has not been called yet.
AlreadyRunning
Server::start was called while already running.
Parse
Failed to parse an RTSP request message (RFC 2326 §6).
Fields
§
kind: ParseErrorKindPortRangeExhausted
Server-side UDP port allocation exhausted the 5000–65534 range.
MountNotFound(String)
No mount registered at the requested path.
Trait Implementations§
Source§impl Error for RtspError
impl Error for RtspError
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 RtspError
impl !RefUnwindSafe for RtspError
impl Send for RtspError
impl Sync for RtspError
impl Unpin for RtspError
impl UnsafeUnpin for RtspError
impl !UnwindSafe for RtspError
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