pub enum SendPacketError {
Encode(EncodeError),
PacketIdInUse(NonZeroU16),
Disconnected,
}
Variants§
Encode(EncodeError)
Encoder error
PacketIdInUse(NonZeroU16)
Provided packet id is in use
Disconnected
Peer disconnected
Trait Implementations§
source§impl Clone for SendPacketError
impl Clone for SendPacketError
source§fn clone(&self) -> SendPacketError
fn clone(&self) -> SendPacketError
Returns a copy of the value. Read more
1.0.0 · 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 SendPacketError
impl Debug for SendPacketError
source§impl Display for SendPacketError
impl Display for SendPacketError
source§impl Error for SendPacketError
impl Error for SendPacketError
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 From<EncodeError> for SendPacketError
impl From<EncodeError> for SendPacketError
source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Converts to this type from the input type.
source§impl PartialEq for SendPacketError
impl PartialEq for SendPacketError
impl Copy for SendPacketError
impl Eq for SendPacketError
impl StructuralPartialEq for SendPacketError
Auto Trait Implementations§
impl Freeze for SendPacketError
impl RefUnwindSafe for SendPacketError
impl Send for SendPacketError
impl Sync for SendPacketError
impl Unpin for SendPacketError
impl UnwindSafe for SendPacketError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)