Enum sn_messaging::MessageType[][src]

pub enum MessageType {
    SectionInfo {
        msg: SectionInfoMsg,
        dest_info: DestInfo,
    },
    Client {
        msg: ClientMsg,
        dest_info: DestInfo,
    },
    Routing {
        msg: RoutingMsg,
        dest_info: DestInfo,
    },
    Node {
        msg: NodeMsg,
        dest_info: DestInfo,
        src_section_pk: Option<PublicKey>,
    },
}
Expand description

Type of message. Note this is part of this crate’s public API but this enum is never serialised or even part of the message that is sent over the wire.

Variants

SectionInfo
Show fields

Fields of SectionInfo

msg: SectionInfoMsgdest_info: DestInfo
Client
Show fields

Fields of Client

msg: ClientMsgdest_info: DestInfo
Routing
Show fields

Fields of Routing

msg: RoutingMsgdest_info: DestInfo
Node
Show fields

Fields of Node

msg: NodeMsgdest_info: DestInfosrc_section_pk: Option<PublicKey>

Implementations

serialize the message type into bytes ready to be sent over the wire.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.