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
NotFriend
Not a friend. (When this can happen and what does it entail?)
Added
Friend was added.
FrSent
Friend request was sent to the friend.
Confirmed
Friend confirmed. (Something like toxcore knowing that friend accepted FR?)
Online
Friend has come online.
Trait Implementations
impl Copy for FriendStatus
[src]
impl Clone for FriendStatus
[src]
fn clone(&self) -> FriendStatus
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for FriendStatus
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for FriendStatus
[src]
impl PartialEq for FriendStatus
[src]
fn eq(&self, __arg_0: &FriendStatus) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl FromBytes for FriendStatus
[src]
fn parse_bytes(i: &[u8]) -> IResult<&[u8], Self, u32>
De-serialize from bytes.
fn parse_bytes_multiple<'a>(bytes: &'a [u8]) -> ParseResult<Vec<Self>>
[src]
De-serialize as many entities from bytes as posible. Note that even if Vec<_>
is returned, it still can be empty. Read more
fn parse_bytes_multiple_n<'a>(
bytes: &'a [u8],
times: usize
) -> ParseResult<Vec<Self>>
[src]
bytes: &'a [u8],
times: usize
) -> ParseResult<Vec<Self>>
De-serialize exact times
entities from bytes. Note that even if Vec<_>
is returned, it still can be empty. Read more
fn from_bytes(bytes: &[u8]) -> Option<Self>
[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