Struct librespot_core::cache::Cache[][src]

pub struct Cache { /* fields omitted */ }

A cache for volume, credentials and audio files.

Implementations

impl Cache[src]

pub fn new<P: AsRef<Path>>(
    system_location: Option<P>,
    audio_location: Option<P>,
    size_limit: Option<u64>
) -> Result<Self>
[src]

pub fn credentials(&self) -> Option<Credentials>[src]

pub fn save_credentials(&self, cred: &Credentials)[src]

pub fn volume(&self) -> Option<u16>[src]

pub fn save_volume(&self, volume: u16)[src]

pub fn file(&self, file: FileId) -> Option<File>[src]

pub fn save_file<F: Read>(&self, file: FileId, contents: &mut F)[src]

pub fn remove_file(&self, file: FileId) -> Result<(), RemoveFileError>[src]

Trait Implementations

impl Clone for Cache[src]

Auto Trait Implementations

impl RefUnwindSafe for Cache

impl Send for Cache

impl Sync for Cache

impl Unpin for Cache

impl UnwindSafe for Cache

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