pub enum BridgeServeError {
Router(RouterError),
Downstream(DownstreamError),
Client(BridgeClientError),
Bind {
addr: SocketAddr,
source: Error,
},
}Expand description
Why a bridge’s HTTP side could not be built.
Variants§
Router(RouterError)
The router refused to build.
In practice a configured security header that is not a legal HTTP
value, or the issue #11 fail-open combination of a wired
authenticator and the default AuthPolicy::Public policy.
Downstream(DownstreamError)
The downstream leg could not be built.
Client(BridgeClientError)
A client’s loop ended.
Bind
The address could not be bound, or the accept loop failed.
Fields
§
addr: SocketAddrThe address the bridge was asked to take.
Trait Implementations§
Source§impl Debug for BridgeServeError
impl Debug for BridgeServeError
Source§impl Display for BridgeServeError
impl Display for BridgeServeError
Source§impl Error for BridgeServeError
impl Error for BridgeServeError
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 From<BridgeClientError> for BridgeServeError
impl From<BridgeClientError> for BridgeServeError
Source§fn from(source: BridgeClientError) -> Self
fn from(source: BridgeClientError) -> Self
Converts to this type from the input type.
Source§impl From<DownstreamError> for BridgeServeError
impl From<DownstreamError> for BridgeServeError
Source§fn from(source: DownstreamError) -> Self
fn from(source: DownstreamError) -> Self
Converts to this type from the input type.
Source§impl From<RouterError> for BridgeServeError
impl From<RouterError> for BridgeServeError
Source§fn from(source: RouterError) -> Self
fn from(source: RouterError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for BridgeServeError
impl !UnwindSafe for BridgeServeError
impl Freeze for BridgeServeError
impl Send for BridgeServeError
impl Sync for BridgeServeError
impl Unpin for BridgeServeError
impl UnsafeUnpin for BridgeServeError
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