pub enum NetcodeProtocolError {
ProtocolMismatch,
VersionMismatch(u8),
MissingLobbyId,
MissingSender,
}Variants§
Trait Implementations§
Source§impl Clone for NetcodeProtocolError
impl Clone for NetcodeProtocolError
Source§fn clone(&self) -> NetcodeProtocolError
fn clone(&self) -> NetcodeProtocolError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetcodeProtocolError
impl Debug for NetcodeProtocolError
Source§impl Display for NetcodeProtocolError
impl Display for NetcodeProtocolError
impl Eq for NetcodeProtocolError
Source§impl Error for NetcodeProtocolError
impl Error for NetcodeProtocolError
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()
Source§impl PartialEq for NetcodeProtocolError
impl PartialEq for NetcodeProtocolError
Source§fn eq(&self, other: &NetcodeProtocolError) -> bool
fn eq(&self, other: &NetcodeProtocolError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NetcodeProtocolError
Auto Trait Implementations§
impl Freeze for NetcodeProtocolError
impl RefUnwindSafe for NetcodeProtocolError
impl Send for NetcodeProtocolError
impl Sync for NetcodeProtocolError
impl Unpin for NetcodeProtocolError
impl UnsafeUnpin for NetcodeProtocolError
impl UnwindSafe for NetcodeProtocolError
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