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: IpconMsgType§peer: String§group: Option<String>§buf: Vec<u8>Auto Trait Implementations§
impl Freeze for IpconMsgBody
impl RefUnwindSafe for IpconMsgBody
impl Send for IpconMsgBody
impl Sync for IpconMsgBody
impl Unpin for IpconMsgBody
impl UnwindSafe for IpconMsgBody
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more