#[non_exhaustive]pub enum RtmpUrlError {
Parse(String),
Scheme(String),
PathNotUtf8,
NoHost,
NoApp,
NoStreamKey,
}Available on crate feature
target only.Expand description
Why an RTMP URL was rejected.
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.
Parse(String)
The text is not a URL.
Scheme(String)
The scheme is not rtmp.
PathNotUtf8
A percent-decoded path segment is not valid UTF-8.
NoHost
The URL has no host.
NoApp
The URL has no app segment.
NoStreamKey
The URL has no stream key after the app.
Trait Implementations§
Source§impl Clone for RtmpUrlError
impl Clone for RtmpUrlError
Source§impl Debug for RtmpUrlError
impl Debug for RtmpUrlError
Source§impl Display for RtmpUrlError
impl Display for RtmpUrlError
impl Eq for RtmpUrlError
Source§impl Error for RtmpUrlError
impl Error for RtmpUrlError
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()
Source§impl PartialEq for RtmpUrlError
impl PartialEq for RtmpUrlError
impl StructuralPartialEq for RtmpUrlError
Auto Trait Implementations§
impl Forget for RtmpUrlError
impl Freeze for RtmpUrlError
impl Move for RtmpUrlError
impl RefUnwindSafe for RtmpUrlError
impl Send for RtmpUrlError
impl Sync for RtmpUrlError
impl Unpin for RtmpUrlError
impl UnsafeUnpin for RtmpUrlError
impl UnwindSafe for RtmpUrlError
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