pub enum UriError {
InvalidScheme,
MissingHost,
InvalidPort,
FragmentNotAllowed,
}Expand description
URI-Parser-Errors nach RFC 6455 §3.
Variants§
InvalidScheme
Scheme ist nicht ws:// oder wss://.
MissingHost
Host fehlt.
InvalidPort
Port ist nicht parseable als u16.
FragmentNotAllowed
Spec §3: “fragment identifier MUST NOT be used”.
Trait Implementations§
Source§impl Error for UriError
Available on crate feature std only.
impl Error for UriError
Available on crate feature
std only.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()
impl Copy for UriError
impl Eq for UriError
impl StructuralPartialEq for UriError
Auto Trait Implementations§
impl Freeze for UriError
impl RefUnwindSafe for UriError
impl Send for UriError
impl Sync for UriError
impl Unpin for UriError
impl UnsafeUnpin for UriError
impl UnwindSafe for UriError
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