Struct librespot_core::cache::Cache [−][src]
pub struct Cache { /* fields omitted */ }
A cache for volume, credentials and audio files.
Implementations
impl Cache
[src]
impl Cache
[src]pub fn new<P: AsRef<Path>>(
system_location: Option<P>,
audio_location: Option<P>,
size_limit: Option<u64>
) -> Result<Self>
[src]
system_location: Option<P>,
audio_location: Option<P>,
size_limit: Option<u64>
) -> Result<Self>
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
Auto Trait Implementations
impl RefUnwindSafe for Cache
impl RefUnwindSafe for Cache
impl UnwindSafe for Cache
impl UnwindSafe for Cache