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>where
V: VersionControlled + Serialize + DeserializeOwned,
D: ?Sized,
IO: PersistorIO<S>,
Ser: Fn(&V) -> Result<S>,
De: Fn(&D) -> Result<V>,
S: AsRef<D>,
impl<V, S, D, IO, Ser, De> Persistor<V> for CustomPersistor<V, S, D, IO, Ser, De>where
V: VersionControlled + Serialize + DeserializeOwned,
D: ?Sized,
IO: PersistorIO<S>,
Ser: Fn(&V) -> Result<S>,
De: Fn(&D) -> Result<V>,
S: AsRef<D>,
Auto Trait Implementations§
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> Freeze for CustomPersistor<V, S, D, IO, Ser, De>
impl<V, S, D, IO, Ser, De> RefUnwindSafe for CustomPersistor<V, S, D, IO, Ser, De>where
Ser: RefUnwindSafe,
De: RefUnwindSafe,
PhantomData<(IO, V, S, *const D)>: RefUnwindSafe,
D: ?Sized,
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>
impl<V, S, D, IO, Ser, De> UnwindSafe for CustomPersistor<V, S, D, IO, Ser, De>
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