[−][src]Struct tox_packet::messenger::UserStatus
UserStatus is a struct that holds status of user.
This packet is used to transmit sender's status to a friend. Every time a friend become online or my status is changed, this packet is sent to the friend or to all friends of mine.
Serialized form:
Length | Content |
---|---|
1 | 0x32 |
1 | My status(0 = online, 1 = away, 2 = busy) |
Implementations
impl UserStatus
[src]
pub fn new(status: PeerStatus) -> Self
[src]
Create new UserStatus object.
Trait Implementations
impl Clone for UserStatus
[src]
fn clone(&self) -> UserStatus
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for UserStatus
[src]
impl Debug for UserStatus
[src]
impl Eq for UserStatus
[src]
impl FromBytes for UserStatus
[src]
impl PartialEq<UserStatus> for UserStatus
[src]
fn eq(&self, other: &UserStatus) -> bool
[src]
fn ne(&self, other: &UserStatus) -> bool
[src]
impl StructuralEq for UserStatus
[src]
impl StructuralPartialEq for UserStatus
[src]
impl ToBytes for UserStatus
[src]
Auto Trait Implementations
impl RefUnwindSafe for UserStatus
impl Send for UserStatus
impl Sync for UserStatus
impl Unpin for UserStatus
impl UnwindSafe for UserStatus
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,