Struct librespot_core::session::Session[][src]

pub struct Session(_);

Implementations

impl Session[src]

pub async fn connect(
    config: SessionConfig,
    credentials: Credentials,
    cache: Option<Cache>
) -> Result<Session, SessionError>
[src]

pub fn audio_key(&self) -> &AudioKeyManager[src]

pub fn channel(&self) -> &ChannelManager[src]

pub fn mercury(&self) -> &MercuryManager[src]

pub fn time_delta(&self) -> i64[src]

pub fn spawn<T>(&self, task: T) where
    T: Future + Send + 'static,
    T::Output: Send + 'static, 
[src]

pub fn send_packet(&self, cmd: u8, data: Vec<u8>)[src]

pub fn cache(&self) -> Option<&Arc<Cache>>[src]

pub fn username(&self) -> String[src]

pub fn country(&self) -> String[src]

pub fn device_id(&self) -> &str[src]

pub fn session_id(&self) -> usize[src]

pub fn shutdown(&self)[src]

pub fn is_invalid(&self) -> bool[src]

Trait Implementations

impl Clone for Session[src]

Auto Trait Implementations

impl !RefUnwindSafe for Session

impl Send for Session

impl Sync for Session

impl Unpin for Session

impl !UnwindSafe for Session

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> 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>,