#[non_exhaustive]pub enum StreamError {
Show 21 variants
Protocol {
kind: ProtocolErrorKind,
detail: String,
},
Handshake(String),
ConnectionClosed,
StreamNotFound {
app: String,
stream_id: String,
},
AppNotFound(String),
AppAlreadyRegistered(String),
Unauthorized(String),
StreamAlreadyPublishing {
app: String,
stream_id: String,
},
PublisherLimitReached {
limit: usize,
},
UnsupportedCodec(String),
Codec(String),
Transcode(String),
HwAccelUnavailable(String),
Pipeline(String),
Storage(String),
StorageNotFound(String),
Cluster(String),
NodeNotFound(String),
Config(String),
Io(Error),
Other(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.
Protocol
Handshake(String)
ConnectionClosed
StreamNotFound
AppNotFound(String)
AppAlreadyRegistered(String)
StreamAlreadyPublishing
PublisherLimitReached
UnsupportedCodec(String)
Codec(String)
Transcode(String)
Pipeline(String)
Storage(String)
StorageNotFound(String)
Cluster(String)
NodeNotFound(String)
Config(String)
Io(Error)
Other(String)
Implementations§
Source§impl StreamError
impl StreamError
Sourcepub fn protocol(msg: impl Into<String>) -> Self
pub fn protocol(msg: impl Into<String>) -> Self
A protocol error of unspecified ProtocolErrorKind::Other kind.
Sourcepub fn protocol_kind(kind: ProtocolErrorKind, msg: impl Into<String>) -> Self
pub fn protocol_kind(kind: ProtocolErrorKind, msg: impl Into<String>) -> Self
A protocol error classified with an explicit ProtocolErrorKind.
pub fn codec(msg: impl Into<String>) -> Self
pub fn transcode(msg: impl Into<String>) -> Self
pub fn storage(msg: impl Into<String>) -> Self
pub fn cluster(msg: impl Into<String>) -> Self
pub fn config(msg: impl Into<String>) -> Self
pub fn other(msg: impl Into<String>) -> Self
Trait Implementations§
Source§impl Debug for StreamError
impl Debug for StreamError
Source§impl Display for StreamError
impl Display for StreamError
Source§impl Error for StreamError
impl Error for StreamError
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 !RefUnwindSafe for StreamError
impl !UnwindSafe for StreamError
impl Freeze for StreamError
impl Send for StreamError
impl Sync for StreamError
impl Unpin for StreamError
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more