[][src]Struct tox_packet::messenger::UserStatus

pub struct 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:

LengthContent
10x32
1My 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]

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]

impl StructuralEq for UserStatus[src]

impl StructuralPartialEq for UserStatus[src]

impl ToBytes for UserStatus[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.