pub struct KcpCommand(/* private fields */);Expand description
A raw KCP command byte, including values not known by this crate.
Implementations§
Source§impl KcpCommand
impl KcpCommand
Sourcepub const fn known(self) -> Option<KcpKnownCommand>
pub const fn known(self) -> Option<KcpKnownCommand>
Classifies this command when it is one of KCP’s upstream-defined commands.
Trait Implementations§
Source§impl Clone for KcpCommand
impl Clone for KcpCommand
impl Copy for KcpCommand
Source§impl Debug for KcpCommand
impl Debug for KcpCommand
impl Eq for KcpCommand
Source§impl Hash for KcpCommand
impl Hash for KcpCommand
Source§impl PartialEq for KcpCommand
impl PartialEq for KcpCommand
impl StructuralPartialEq for KcpCommand
Auto Trait Implementations§
impl Freeze for KcpCommand
impl RefUnwindSafe for KcpCommand
impl Send for KcpCommand
impl Sync for KcpCommand
impl Unpin for KcpCommand
impl UnsafeUnpin for KcpCommand
impl UnwindSafe for KcpCommand
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