pub enum SendError {
Io(Error),
InvalidData(SerializeError),
}Expand description
Error that arises when the crate::BauClient is unable to provide an adequate response.
Variants§
Io(Error)
Wrapper for std::io::Error. This is usually a serious error and you’re fucked. Or… the [net::TcpStream] failed. Pick your poison.
InvalidData(SerializeError)
Supplied data was invalid and crate::BauClient was unable to parse it into a valid BauMessage for the purposes of distribution to the crate::BauServer
Trait Implementations§
Source§impl From<SerializeError> for SendError
impl From<SerializeError> for SendError
Source§fn from(value: SerializeError) -> Self
fn from(value: SerializeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SendError
impl !RefUnwindSafe for SendError
impl Send for SendError
impl Sync for SendError
impl Unpin for SendError
impl !UnwindSafe for SendError
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
§impl<T> Erasable for T
impl<T> Erasable for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more