#[non_exhaustive]pub enum UrlRejection {
Authority,
LatencyNotANumber,
LatencyTooLarge,
Mode,
InvalidUtf8,
DuplicateKey,
}Available on crate feature
std only.Expand description
Why an srt:// URL was rejected: the failing part of the grammar, so a
caller can word its own error while the grammar stays in one place.
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.
Authority
The authority is not a host[:port] — no host, a bad port, a userinfo
prefix, or an ambiguous bare IPv6 literal.
LatencyNotANumber
A latency that is not whole milliseconds.
LatencyTooLarge
A latency above MAX_LATENCY_MS.
Mode
A mode other than caller or listener.
InvalidUtf8
A percent-decoded value was not valid UTF-8.
DuplicateKey
The same query key appeared more than once.
Implementations§
Trait Implementations§
Source§impl Clone for UrlRejection
impl Clone for UrlRejection
impl Copy for UrlRejection
Source§impl Debug for UrlRejection
impl Debug for UrlRejection
Source§impl Display for UrlRejection
impl Display for UrlRejection
impl Eq for UrlRejection
Source§impl PartialEq for UrlRejection
impl PartialEq for UrlRejection
impl StructuralPartialEq for UrlRejection
Auto Trait Implementations§
impl Forget for UrlRejection
impl Freeze for UrlRejection
impl Move for UrlRejection
impl RefUnwindSafe for UrlRejection
impl Send for UrlRejection
impl Sync for UrlRejection
impl Unpin for UrlRejection
impl UnsafeUnpin for UrlRejection
impl UnwindSafe for UrlRejection
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