[][src]Struct tox_packet::messenger::Nickname

pub struct Nickname { /* fields omitted */ }

Nickname is a struct that holds string of my nickname.

This packet is used to transmit sender's nickname to a friend. Every time a friend become online or my nickname is changed, this packet is sent to the friend or to all friends of mine.

Serialized form:

LengthContent
10x30
0..128UTF8 byte string

Implementations

impl Nickname[src]

pub fn new(nickname: String) -> Self[src]

Create new Nickname object.

Trait Implementations

impl Clone for Nickname[src]

impl Debug for Nickname[src]

impl Eq for Nickname[src]

impl FromBytes for Nickname[src]

impl PartialEq<Nickname> for Nickname[src]

impl StructuralEq for Nickname[src]

impl StructuralPartialEq for Nickname[src]

impl ToBytes for Nickname[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.