Enum wrpc_transport::frame::AcceptError
source · pub enum AcceptError<C, I, O> {
IO(Error),
UnsupportedVersion(u8),
UnhandledFunction {
instance: String,
name: String,
},
Send(SendError<(C, I, O)>),
}
Expand description
Error returned by Server::accept
Variants§
IO(Error)
I/O error
UnsupportedVersion(u8)
Protocol version is not supported
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()
Auto Trait Implementations§
impl<C, I, O> Freeze for AcceptError<C, I, O>
impl<C, I, O> !RefUnwindSafe 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> !UnwindSafe 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