Enum tox::toxcore::state_format::old::FriendStatus [] [src]

pub enum FriendStatus {
    NotFriend,
    Added,
    FrSent,
    Confirmed,
    Online,
}

Friend state status. Used by FriendState.

https://zetok.github.io/tox-spec/#friends-0x03

use self::tox::toxcore::state_format::old::FriendStatus;

assert_eq!(0u8, FriendStatus::NotFriend as u8);
assert_eq!(1u8, FriendStatus::Added     as u8);
assert_eq!(2u8, FriendStatus::FrSent    as u8);
assert_eq!(3u8, FriendStatus::Confirmed as u8);
assert_eq!(4u8, FriendStatus::Online    as u8);

Variants

Not a friend. (When this can happen and what does it entail?)

Friend was added.

Friend request was sent to the friend.

Friend confirmed. (Something like toxcore knowing that friend accepted FR?)

Friend has come online.

Trait Implementations

impl Copy for FriendStatus
[src]

impl Clone for FriendStatus
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for FriendStatus
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for FriendStatus
[src]

impl PartialEq for FriendStatus
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl FromBytes for FriendStatus
[src]

De-serialize from bytes.

[src]

De-serialize as many entities from bytes as posible. Note that even if Vec<_> is returned, it still can be empty. Read more

[src]

De-serialize exact times entities from bytes. Note that even if Vec<_> is returned, it still can be empty. Read more

[src]

De-serialize from bytes, or return None if de-serialization failed. Note: Some is returned even if there are remaining bytes left. Read more