pub struct StatusMessage(/* private fields */);
Expand description
StatusMessage is a struct that holds string of my status message.
This packet is used to transmit sender’s status message to a friend. Every time a friend become online or my status message is changed, this packet is sent to the friend or to all friends of mine.
Serialized form:
Length | Content |
---|---|
1 | 0x31 |
0..1007 | UTF8 byte string |
Implementations§
Trait Implementations§
Source§impl Clone for StatusMessage
impl Clone for StatusMessage
Source§fn clone(&self) -> StatusMessage
fn clone(&self) -> StatusMessage
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StatusMessage
impl Debug for StatusMessage
Source§impl FromBytes for StatusMessage
impl FromBytes for StatusMessage
Source§fn from_bytes(i: &[u8]) -> IResult<&[u8], StatusMessage, (&[u8], ErrorKind)>
fn from_bytes(i: &[u8]) -> IResult<&[u8], StatusMessage, (&[u8], ErrorKind)>
Deserialize struct using
nom
from raw bytesSource§impl PartialEq for StatusMessage
impl PartialEq for StatusMessage
Source§impl ToBytes for StatusMessage
impl ToBytes for StatusMessage
impl Eq for StatusMessage
impl StructuralPartialEq for StatusMessage
Auto Trait Implementations§
impl Freeze for StatusMessage
impl RefUnwindSafe for StatusMessage
impl Send for StatusMessage
impl Sync for StatusMessage
impl Unpin for StatusMessage
impl UnwindSafe for StatusMessage
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