pub struct BinBytesRecorder<S: PrecisionSettings, L: AsRef<[u8]> + Send + Sync + Debug + Clone + Default = Vec<u8>> { /* private fields */ }Expand description
In memory recorder using the bincode format.
Implementations§
Trait Implementations§
Source§impl<S: Clone + PrecisionSettings, L: Clone + AsRef<[u8]> + Send + Sync + Debug + Clone + Default> Clone for BinBytesRecorder<S, L>
impl<S: Clone + PrecisionSettings, L: Clone + AsRef<[u8]> + Send + Sync + Debug + Clone + Default> Clone for BinBytesRecorder<S, L>
Source§fn clone(&self) -> BinBytesRecorder<S, L>
fn clone(&self) -> BinBytesRecorder<S, L>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: Debug + PrecisionSettings, L: Debug + AsRef<[u8]> + Send + Sync + Debug + Clone + Default> Debug for BinBytesRecorder<S, L>
impl<S: Debug + PrecisionSettings, L: Debug + AsRef<[u8]> + Send + Sync + Debug + Clone + Default> Debug for BinBytesRecorder<S, L>
Source§impl<S: Default + PrecisionSettings, L: Default + AsRef<[u8]> + Send + Sync + Debug + Clone + Default> Default for BinBytesRecorder<S, L>
impl<S: Default + PrecisionSettings, L: Default + AsRef<[u8]> + Send + Sync + Debug + Clone + Default> Default for BinBytesRecorder<S, L>
Source§fn default() -> BinBytesRecorder<S, L>
fn default() -> BinBytesRecorder<S, L>
Returns the “default value” for a type. Read more
Source§impl<S: PrecisionSettings, B: Backend, L: AsRef<[u8]> + Send + Sync + Debug + Clone + Default> Recorder<B> for BinBytesRecorder<S, L>
impl<S: PrecisionSettings, B: Backend, L: AsRef<[u8]> + Send + Sync + Debug + Clone + Default> Recorder<B> for BinBytesRecorder<S, L>
Source§type RecordArgs = ()
type RecordArgs = ()
Arguments used to record objects.
Source§type RecordOutput = Vec<u8>
type RecordOutput = Vec<u8>
Record output type.
Source§fn save_item<I: Serialize>(
&self,
item: I,
_args: Self::RecordArgs,
) -> Result<Self::RecordOutput, RecorderError>
fn save_item<I: Serialize>( &self, item: I, _args: Self::RecordArgs, ) -> Result<Self::RecordOutput, RecorderError>
Saves an item. Read more
Source§fn load_item<I: DeserializeOwned>(
&self,
args: &mut Self::LoadArgs,
) -> Result<I, RecorderError>
fn load_item<I: DeserializeOwned>( &self, args: &mut Self::LoadArgs, ) -> Result<I, RecorderError>
Loads an item. Read more
Source§fn record<R>(
&self,
record: R,
args: Self::RecordArgs,
) -> Result<Self::RecordOutput, RecorderError>where
R: Record<B>,
fn record<R>(
&self,
record: R,
args: Self::RecordArgs,
) -> Result<Self::RecordOutput, RecorderError>where
R: Record<B>,
Records an item. Read more
impl<S: PrecisionSettings, B: Backend, L: AsRef<[u8]> + Send + Sync + Debug + Clone + Default> BytesRecorder<B, L> for BinBytesRecorder<S, L>
Auto Trait Implementations§
impl<S, L> Freeze for BinBytesRecorder<S, L>
impl<S, L> RefUnwindSafe for BinBytesRecorder<S, L>where
S: RefUnwindSafe,
L: RefUnwindSafe,
impl<S, L> Send for BinBytesRecorder<S, L>
impl<S, L> Sync for BinBytesRecorder<S, L>
impl<S, L> Unpin for BinBytesRecorder<S, L>
impl<S, L> UnwindSafe for BinBytesRecorder<S, L>where
S: UnwindSafe,
L: UnwindSafe,
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