pub struct Persistent<T: Encodable + Decodable> {
pub inner: Arc<Mutex<T>>,
pub name: String,
}Fields§
§inner: Arc<Mutex<T>>§name: StringImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Persistent<T>
impl<T> RefUnwindSafe for Persistent<T>
impl<T> Send for Persistent<T>where
T: Send,
impl<T> Sync for Persistent<T>where
T: Send,
impl<T> Unpin for Persistent<T>
impl<T> UnwindSafe for Persistent<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