pub enum InvalidSessionEndpointUrl {
NotHttp(String),
NoHost(String),
PlainHttp(String),
NotAnOrigin(String),
}Expand description
Why a string is not a valid SessionEndpointUrl.
Variants§
NotHttp(String)
The scheme is not http or https, or the text is not a URL.
NoHost(String)
The URL has an empty host.
PlainHttp(String)
The URL is plain http and its host is not 127.0.0.1.
NotAnOrigin(String)
The URL has a path, a query, a fragment or user info.
Trait Implementations§
Source§impl Debug for InvalidSessionEndpointUrl
impl Debug for InvalidSessionEndpointUrl
Source§impl Display for InvalidSessionEndpointUrl
impl Display for InvalidSessionEndpointUrl
Source§impl Error for InvalidSessionEndpointUrl
impl Error for InvalidSessionEndpointUrl
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()
Auto Trait Implementations§
impl Forget for InvalidSessionEndpointUrl
impl Freeze for InvalidSessionEndpointUrl
impl Move for InvalidSessionEndpointUrl
impl RefUnwindSafe for InvalidSessionEndpointUrl
impl Send for InvalidSessionEndpointUrl
impl Sync for InvalidSessionEndpointUrl
impl Unpin for InvalidSessionEndpointUrl
impl UnsafeUnpin for InvalidSessionEndpointUrl
impl UnwindSafe for InvalidSessionEndpointUrl
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