pub enum NaiaServerError {
Message(String),
Wrapped(Box<dyn Error>),
SendError(SocketAddr),
RecvError,
}Variants§
Implementations§
Source§impl NaiaServerError
impl NaiaServerError
pub fn from_message(message: &str) -> Self
Trait Implementations§
Source§impl Debug for NaiaServerError
impl Debug for NaiaServerError
Source§impl Display for NaiaServerError
impl Display for NaiaServerError
Source§impl Error for NaiaServerError
impl Error for NaiaServerError
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()
impl Send for NaiaServerError
impl Sync for NaiaServerError
Auto Trait Implementations§
impl Freeze for NaiaServerError
impl !RefUnwindSafe for NaiaServerError
impl Unpin for NaiaServerError
impl !UnwindSafe for NaiaServerError
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