[][src]Enum pkstl::IncomingBinaryMessage

pub enum IncomingBinaryMessage {
    Connect {
        custom_datas: Option<Vec<u8>>,
        peer_sig_public_key: Vec<u8>,
    },
    Ack {
        custom_datas: Option<Vec<u8>>,
    },
    Message {
        datas: Option<Vec<u8>>,
    },
}

Incoming binary Message

Variants

Connect

Connect message

Fields of Connect

custom_datas: Option<Vec<u8>>

Your custom datas

peer_sig_public_key: Vec<u8>

Peer public key of signature algorithm

Ack

Ack message

Fields of Ack

custom_datas: Option<Vec<u8>>

Your custom datas

Message

Message

Fields of Message

datas: Option<Vec<u8>>

Message datas (This is an option because it's possible to receive an empty message)

Trait Implementations

impl Debug for IncomingBinaryMessage[src]

impl PartialEq<IncomingBinaryMessage> for IncomingBinaryMessage[src]

impl StructuralPartialEq for IncomingBinaryMessage[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, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

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.