Enum veloren_client::error::NetworkError
pub enum NetworkError {
NetworkClosed,
ListenFailed(Error),
ConnectFailed(NetworkConnectError),
}
Expand description
Error type thrown by Networks
methods
Variants§
Trait Implementations§
§impl Debug for NetworkError
impl Debug for NetworkError
§impl Display for NetworkError
impl Display for NetworkError
§impl Error for NetworkError
impl Error for NetworkError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
§impl From<Error> for NetworkError
impl From<Error> for NetworkError
§fn from(_err: Error) -> NetworkError
fn from(_err: Error) -> NetworkError
Converts to this type from the input type.
source§impl From<NetworkError> for Error
impl From<NetworkError> for Error
source§fn from(err: NetworkError) -> Self
fn from(err: NetworkError) -> Self
Converts to this type from the input type.
§impl From<RecvError> for NetworkError
impl From<RecvError> for NetworkError
§fn from(_err: RecvError) -> NetworkError
fn from(_err: RecvError) -> NetworkError
Converts to this type from the input type.
§impl<T> From<SendError<T>> for NetworkError
impl<T> From<SendError<T>> for NetworkError
§fn from(_err: SendError<T>) -> NetworkError
fn from(_err: SendError<T>) -> NetworkError
Converts to this type from the input type.
§impl<T> From<SendError<T>> for NetworkError
impl<T> From<SendError<T>> for NetworkError
§fn from(_err: SendError<T>) -> NetworkError
fn from(_err: SendError<T>) -> NetworkError
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for NetworkError
impl !RefUnwindSafe for NetworkError
impl Send for NetworkError
impl Sync for NetworkError
impl Unpin for NetworkError
impl !UnwindSafe for NetworkError
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> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
§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>
§impl<T> IntoAnyhow for T
impl<T> IntoAnyhow for T
§fn into_anyhow(self) -> Error
fn into_anyhow(self) -> Error
Converts
self
into an anyhow::Error
.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