pub struct SeveralFilesObject<T> { /* private fields */ }
Implementations§
Source§impl<T: IdEntity + Send + Clone + Serialize + DeserializeOwned> SeveralFilesObject<T>
impl<T: IdEntity + Send + Clone + Serialize + DeserializeOwned> SeveralFilesObject<T>
pub fn new() -> SeveralFilesObject<T>
pub fn get_or_create(&mut self, id: &str) -> String
pub fn contains(&self, id: &str) -> bool
pub fn create(&mut self, id: &str) -> String
pub fn get_mut(&mut self, id: &str) -> Option<&mut T>
pub fn get(&self, id: &str) -> Option<&T>
pub fn get_thread_safe(id: &str) -> Option<T>
pub fn get_entities(&self) -> Iter<'_, String, T>
pub fn update(&mut self, id: &str)
pub fn wait_handles(self)
Auto Trait Implementations§
impl<T> Freeze for SeveralFilesObject<T>
impl<T> !RefUnwindSafe for SeveralFilesObject<T>
impl<T> Send for SeveralFilesObject<T>where
T: Send,
impl<T> Sync for SeveralFilesObject<T>where
T: Sync,
impl<T> Unpin for SeveralFilesObject<T>where
T: Unpin,
impl<T> !UnwindSafe for SeveralFilesObject<T>
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