pub struct IpconMsgBody {
    pub msg_type: IpconMsgType,
    pub peer: String,
    pub group: Option<String>,
    pub buf: Vec<u8>,
}
Expand description

The body of a IPCON message.

  • msg_type
    • IpconMsgTypeNormal : a normal message.
    • IpconMsgTypeGroup : a multicast group message.
    • IpconMsgTypeKevent : a IPCON kernel module message
    • IpconMsgTypeInvalid: an invalid IPCON message
  • peer
    The name of peer who sent this message.
  • group
    The group of this message. It will be None if the message is not a multicast group message.
  • buf
    Message content.

Fields

msg_type: IpconMsgTypepeer: Stringgroup: Option<String>buf: Vec<u8>

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.