pub enum AcceptError<C, I, O> {
HeaderRead(HeaderReadError),
UnhandledFunction {
instance: String,
name: String,
},
Send(SendError<(C, I, O)>),
}Expand description
Error returned by Server::accept
Variants§
HeaderRead(HeaderReadError)
Header read error
UnhandledFunction
Function was not handled
Send(SendError<(C, I, O)>)
Message sending failed
Trait Implementations§
Source§impl<C, I, O> Debug for AcceptError<C, I, O>
impl<C, I, O> Debug for AcceptError<C, I, O>
Source§impl<C, I, O> Display for AcceptError<C, I, O>
impl<C, I, O> Display for AcceptError<C, I, O>
Source§impl<C, I, O> Error for AcceptError<C, I, O>
impl<C, I, O> Error for AcceptError<C, I, O>
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()
Source§impl<C, I, O> From<HeaderReadError> for AcceptError<C, I, O>
impl<C, I, O> From<HeaderReadError> for AcceptError<C, I, O>
Source§fn from(err: HeaderReadError) -> Self
fn from(err: HeaderReadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<C, I, O> !RefUnwindSafe for AcceptError<C, I, O>
impl<C, I, O> !UnwindSafe for AcceptError<C, I, O>
impl<C, I, O> Freeze for AcceptError<C, I, O>
impl<C, I, O> Send for AcceptError<C, I, O>
impl<C, I, O> Sync for AcceptError<C, I, O>
impl<C, I, O> Unpin for AcceptError<C, I, O>
impl<C, I, O> UnsafeUnpin for AcceptError<C, I, O>
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