Struct librespot_core::session::Session [−][src]
pub struct Session(_);
Implementations
impl Session
[src]
impl Session
[src]pub async fn connect(
config: SessionConfig,
credentials: Credentials,
cache: Option<Cache>
) -> Result<Session, SessionError>
[src]
config: SessionConfig,
credentials: Credentials,
cache: Option<Cache>
) -> Result<Session, SessionError>
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]
T: Future + Send + 'static,
T::Output: Send + 'static,
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
Auto Trait Implementations
impl !RefUnwindSafe for Session
impl !RefUnwindSafe for Session
impl !UnwindSafe for Session
impl !UnwindSafe for Session