[][src]Struct serenity_voice_model::ProtocolData

pub struct ProtocolData {
    pub address: IpAddr,
    pub mode: String,
    pub port: u16,
}

The client's response to a connection offer.

Fields

address: IpAddr

IP address of the client as seen by the server (e.g., after using IP DIscovery for NAT hole-punching).

mode: String

The client's chosen encryption mode (from those offered by the server).

port: u16

UDP source port of the client as seen by the server, as above.

Trait Implementations

impl Clone for ProtocolData[src]

impl Debug for ProtocolData[src]

impl<'de> Deserialize<'de> for ProtocolData[src]

impl Eq for ProtocolData[src]

impl Hash for ProtocolData[src]

impl PartialEq<ProtocolData> for ProtocolData[src]

impl Serialize for ProtocolData[src]

impl StructuralEq for ProtocolData[src]

impl StructuralPartialEq for ProtocolData[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.