pub struct UploadCache { /* private fields */ }Implementations§
Source§impl UploadCache
impl UploadCache
pub fn load(path: PathBuf, account_count: usize) -> Result<Self>
pub fn contains(&self, replay_id: &str) -> bool
pub fn location(&self, replay_id: &str) -> Option<&str>
pub fn add(&mut self, replay_id: impl Into<String>) -> Result<bool>
pub fn add_with_location( &mut self, replay_id: impl Into<String>, location: Option<String>, ) -> Result<bool>
pub fn save(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for UploadCache
impl Clone for UploadCache
Source§fn clone(&self) -> UploadCache
fn clone(&self) -> UploadCache
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UploadCache
impl RefUnwindSafe for UploadCache
impl Send for UploadCache
impl Sync for UploadCache
impl Unpin for UploadCache
impl UnsafeUnpin for UploadCache
impl UnwindSafe for UploadCache
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more