pub enum ServerHttpEndpointError {
InvalidConfiguration(String),
Http(HttpError),
Transport(TransportError),
Session(HttpSessionError),
Closed,
}Expand description
Failure while constructing or operating a public server HTTP endpoint.
This is the stable server API for both ModernOnly and legacy-enabled builds; transport-internal endpoint errors never cross the server boundary.
Variants§
InvalidConfiguration(String)
The endpoint configuration is invalid.
Http(HttpError)
Modern HTTP admission failed.
Transport(TransportError)
A bounded transport operation failed.
Session(HttpSessionError)
A bounded HTTP session could not be opened.
Closed
The endpoint session has closed.
Trait Implementations§
Source§impl Debug for ServerHttpEndpointError
impl Debug for ServerHttpEndpointError
Source§impl Display for ServerHttpEndpointError
impl Display for ServerHttpEndpointError
Source§impl Error for ServerHttpEndpointError
impl Error for ServerHttpEndpointError
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 !RefUnwindSafe for ServerHttpEndpointError
impl !UnwindSafe for ServerHttpEndpointError
impl Freeze for ServerHttpEndpointError
impl Send for ServerHttpEndpointError
impl Sync for ServerHttpEndpointError
impl Unpin for ServerHttpEndpointError
impl UnsafeUnpin for ServerHttpEndpointError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).