pub enum Accepting<TAccepting>where
TAccepting: Accepting,{
Accepting(TAccepting::Error),
RequestOk(<TAccepting::Request as Request>::OkError),
RequestClose(<TAccepting::Request as Request>::CloseError),
}
Variants§
Accepting(TAccepting::Error)
RequestOk(<TAccepting::Request as Request>::OkError)
RequestClose(<TAccepting::Request as Request>::CloseError)
Trait Implementations§
Source§impl<TAccepting> Error for Accepting<TAccepting>where
TAccepting: Accepting,
impl<TAccepting> Error for Accepting<TAccepting>where
TAccepting: Accepting,
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<TAccepting> Freeze for Accepting<TAccepting>
impl<TAccepting> RefUnwindSafe for Accepting<TAccepting>where
<TAccepting as Accepting>::Error: RefUnwindSafe,
<<TAccepting as Accepting>::Request as Request>::OkError: RefUnwindSafe,
<<TAccepting as Accepting>::Request as Request>::CloseError: RefUnwindSafe,
impl<TAccepting> Send for Accepting<TAccepting>
impl<TAccepting> Sync for Accepting<TAccepting>
impl<TAccepting> Unpin for Accepting<TAccepting>
impl<TAccepting> UnwindSafe for Accepting<TAccepting>where
<TAccepting as Accepting>::Error: UnwindSafe,
<<TAccepting as Accepting>::Request as Request>::OkError: UnwindSafe,
<<TAccepting as Accepting>::Request as Request>::CloseError: 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