pub struct Message {
pub family: u16,
pub command: u8,
pub version: u8,
pub flags: MessageFlags,
pub attributes: Vec<Attribute>,
}
Fields§
§family: u16
§command: u8
§version: u8
§flags: MessageFlags
§attributes: Vec<Attribute>
Implementations§
Source§impl Message
impl Message
pub fn new<F: Into<u16>, C: Into<u8>, M: Into<MessageFlags>>( family: F, command: C, mode: M, ) -> Message
pub fn parse<R: Read + Seek>(reader: &mut R) -> Result<Message>
pub fn family(&self) -> u16
pub fn set_flags(&mut self, flags: MessageFlags)
pub fn append_attribute(&mut self, attr: Attribute)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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