[][src]Struct koibumi_core::packet::Command

pub struct 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]

impl From<CommandKind> for Command[src]

impl Hash for Command[src]

impl Ord for Command[src]

impl PartialEq<Command> for Command[src]

impl PartialOrd<Command> for Command[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.

impl TryFrom<Command> for CommandKind[src]

type Error = TryFromCommandError

The type returned in the event of a conversion error.

impl WriteTo for Command[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReadFromExact for T where
    T: ReadFrom
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.