pub struct NoLayer2 { /* private fields */ }Trait Implementations§
Source§impl CloneNoPersistence for NoLayer2
impl CloneNoPersistence for NoLayer2
fn clone_no_persistence(&self) -> Self
Source§impl Layer2 for NoLayer2
impl Layer2 for NoLayer2
type Descr = Layer2Empty
type Data = Layer2Empty
type Cache = Layer2Empty
type LoadError = Infallible
type StoreError = Infallible
Source§impl Persisting for NoLayer2
impl Persisting for NoLayer2
fn persistence(&self) -> Option<&Persistence<Self>>
fn persistence_mut(&mut self) -> Option<&mut Persistence<Self>>
fn as_mut_persistence(&mut self) -> &mut Option<Persistence<Self>>
fn load( provider: impl PersistenceProvider<Self> + 'static, autosave: bool, ) -> Result<Self, PersistenceError>
fn is_persisted(&self) -> bool
fn is_dirty(&self) -> bool
fn mark_dirty(&mut self)
fn is_autosave(&self) -> bool
fn set_autosave(&mut self)
Source§fn make_persistent(
&mut self,
provider: impl PersistenceProvider<Self> + 'static,
autosave: bool,
) -> Result<bool, PersistenceError>
fn make_persistent( &mut self, provider: impl PersistenceProvider<Self> + 'static, autosave: bool, ) -> Result<bool, PersistenceError>
Returns whether the object was persisting before this method.
fn store(&mut self) -> Result<(), PersistenceError>
Auto Trait Implementations§
impl !RefUnwindSafe for NoLayer2
impl !UnwindSafe for NoLayer2
impl Freeze for NoLayer2
impl Send for NoLayer2
impl Sync for NoLayer2
impl Unpin for NoLayer2
impl UnsafeUnpin for NoLayer2
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