Struct songbird::ConnectionInfo[][src]

pub struct ConnectionInfo {
    pub endpoint: String,
    pub guild_id: GuildId,
    pub session_id: String,
    pub token: String,
    pub user_id: UserId,
}

Parameters and information needed to start communicating with Discord’s voice servers, either with the Songbird driver, lavalink, or other system.

Fields

endpoint: String

URL of the voice websocket gateway server assigned to this call.

guild_id: GuildId

ID of the target voice channel’s parent guild.

Bots cannot connect to a guildless (i.e., direct message) voice call.

session_id: String

Unique string describing this session for validation/authentication purposes.

token: String

Ephemeral secret used to validate the above session.

user_id: UserId

UserID of this bot.

Trait Implementations

impl Clone for ConnectionInfo[src]

impl Debug for ConnectionInfo[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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]