pub struct CustomPersistor<V: Serialize + DeserializeOwned, S, D: ?Sized, IO: PersistorIO<S>, Ser: Fn(&V) -> Result<S>, De: Fn(&D) -> Result<V>> {
pub ser: Ser,
pub de: De,
pub id: String,
pub scope: Scope,
pub suffix: Option<String>,
/* private fields */
}Fields§
§ser: Ser§de: De§id: String§scope: Scope§suffix: Option<String>Implementations§
Trait Implementations§
Source§impl<V, S, D, IO, Ser, De> Persistor<V> for CustomPersistor<V, S, D, IO, Ser, De>
impl<V, S, D, IO, Ser, De> Persistor<V> for CustomPersistor<V, S, D, IO, Ser, De>
Auto Trait Implementations§
impl<V, S, D, IO, Ser, De> Forget for CustomPersistor<V, S, D, IO, Ser, De>where
D: ?Sized,
impl<V, S, D, IO, Ser, De> Freeze for CustomPersistor<V, S, D, IO, Ser, De>
impl<V, S, D, IO, Ser, De> Move for CustomPersistor<V, S, D, IO, Ser, De>where
D: ?Sized,
impl<V, S, D, IO, Ser, De> RefUnwindSafe for CustomPersistor<V, S, D, IO, Ser, De>where
Ser: RefUnwindSafe,
De: RefUnwindSafe,
IO: RefUnwindSafe,
V: RefUnwindSafe,
S: RefUnwindSafe,
D: ?Sized,
impl<V, S, D, IO, Ser, De> Send for CustomPersistor<V, S, D, IO, Ser, De>
impl<V, S, D, IO, Ser, De> Sync for CustomPersistor<V, S, D, IO, Ser, De>
impl<V, S, D, IO, Ser, De> Unpin for CustomPersistor<V, S, D, IO, Ser, De>
impl<V, S, D, IO, Ser, De> UnsafeUnpin for CustomPersistor<V, S, D, IO, Ser, De>where
Ser: UnsafeUnpin,
De: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(IO, V, S, fn(&D))>: UnsafeUnpin,
D: ?Sized,
impl<V, S, D, IO, Ser, De> UnwindSafe for CustomPersistor<V, S, D, IO, Ser, De>where
Ser: UnwindSafe,
De: UnwindSafe,
RawVecInner: UnwindSafe,
IO: UnwindSafe,
V: UnwindSafe,
S: UnwindSafe,
D: ?Sized,
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