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 !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.