[−][src]Struct koibumi_core::packet::Command
The type of a Bitmessage message.
Implementations
impl Command
[src]
pub const ERROR: Command
[src]
The "error" command.
pub const GETDATA: Command
[src]
The "getdata" command.
pub const INV: Command
[src]
The "inv" command.
pub const DINV: Command
[src]
The "dinv" command.
pub const OBJECT: Command
[src]
The "object" command.
pub const ADDR: Command
[src]
The "addr" command.
pub const PORTCHECK: Command
[src]
The "portcheck" command.
pub const PING: Command
[src]
The "ping" command.
pub const PONG: Command
[src]
The "pong" command.
pub const VERACK: Command
[src]
The "verack" command.
pub const VERSION: Command
[src]
The "version" command.
pub const fn new(bytes: [u8; 12]) -> Self
[src]
Constructs a command from a byte array.
Trait Implementations
impl AsRef<[u8]> for Command
[src]
impl Clone for Command
[src]
impl Copy for Command
[src]
impl Debug for Command
[src]
impl Eq for Command
[src]
impl From<&'_ CommandKind> for Command
[src]
pub fn from(c: &CommandKind) -> Self
[src]
impl From<CommandKind> for Command
[src]
pub fn from(c: CommandKind) -> Self
[src]
impl Hash for Command
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Command
[src]
pub fn cmp(&self, other: &Command) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Command> for Command
[src]
impl PartialOrd<Command> for Command
[src]
pub fn partial_cmp(&self, other: &Command) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Command) -> bool
[src]
pub fn le(&self, other: &Command) -> bool
[src]
pub fn gt(&self, other: &Command) -> bool
[src]
pub fn ge(&self, other: &Command) -> bool
[src]
impl ReadFrom for Command
[src]
impl StructuralEq for Command
[src]
impl StructuralPartialEq for Command
[src]
impl TryFrom<&'_ [u8]> for Command
[src]
type Error = ParseCommandError
The type returned in the event of a conversion error.
pub fn try_from(bytes: &[u8]) -> Result<Self, Self::Error>
[src]
impl TryFrom<Command> for CommandKind
[src]
type Error = TryFromCommandError
The type returned in the event of a conversion error.
pub fn try_from(s: Command) -> Result<Self, Self::Error>
[src]
impl WriteTo for Command
[src]
Auto Trait Implementations
impl RefUnwindSafe for Command
[src]
impl Send for Command
[src]
impl Sync for Command
[src]
impl Unpin for Command
[src]
impl UnwindSafe for Command
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ReadFromExact for T where
T: ReadFrom,
[src]
T: ReadFrom,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,