pub enum Connect<Endpoint>where
Endpoint: Connect,{
Connect(Endpoint::Error),
Connecting(<Endpoint::Connecting as Connecting>::Error),
}
Variants§
Connect(Endpoint::Error)
Connecting(<Endpoint::Connecting as Connecting>::Error)
Trait Implementations§
Source§impl<Endpoint> Error for Connect<Endpoint>where
Endpoint: Connect,
impl<Endpoint> Error for Connect<Endpoint>where
Endpoint: Connect,
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<Endpoint> Freeze for Connect<Endpoint>where
<Endpoint as Connect>::Error: Freeze,
<<Endpoint as Connect>::Connecting as Connecting>::Error: Freeze,
impl<Endpoint> RefUnwindSafe for Connect<Endpoint>where
<Endpoint as Connect>::Error: RefUnwindSafe,
<<Endpoint as Connect>::Connecting as Connecting>::Error: RefUnwindSafe,
impl<Endpoint> Send for Connect<Endpoint>
impl<Endpoint> Sync for Connect<Endpoint>
impl<Endpoint> Unpin for Connect<Endpoint>where
<Endpoint as Connect>::Error: Unpin,
<<Endpoint as Connect>::Connecting as Connecting>::Error: Unpin,
impl<Endpoint> UnwindSafe for Connect<Endpoint>where
<Endpoint as Connect>::Error: UnwindSafe,
<<Endpoint as Connect>::Connecting as Connecting>::Error: UnwindSafe,
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