pub struct NamedMpkFileRecorder<S: PrecisionSettings> { /* private fields */ }Available on crate feature
std only.Expand description
File recorder using the named msgpack format.
Implementations§
Source§impl<S: PrecisionSettings> NamedMpkFileRecorder<S>
impl<S: PrecisionSettings> NamedMpkFileRecorder<S>
Trait Implementations§
Source§impl<S: Clone + PrecisionSettings> Clone for NamedMpkFileRecorder<S>
impl<S: Clone + PrecisionSettings> Clone for NamedMpkFileRecorder<S>
Source§impl<S: Debug + PrecisionSettings> Debug for NamedMpkFileRecorder<S>
impl<S: Debug + PrecisionSettings> Debug for NamedMpkFileRecorder<S>
Source§impl<S: Default + PrecisionSettings> Default for NamedMpkFileRecorder<S>
impl<S: Default + PrecisionSettings> Default for NamedMpkFileRecorder<S>
Source§impl<S: PrecisionSettings, B: Backend> FileRecorder<B> for NamedMpkFileRecorder<S>
impl<S: PrecisionSettings, B: Backend> FileRecorder<B> for NamedMpkFileRecorder<S>
Source§fn file_extension() -> &'static str
fn file_extension() -> &'static str
File extension of the format used by the recorder.
Source§impl<S: PrecisionSettings, B: Backend> Recorder<B> for NamedMpkFileRecorder<S>
impl<S: PrecisionSettings, B: Backend> Recorder<B> for NamedMpkFileRecorder<S>
Source§type RecordArgs = PathBuf
type RecordArgs = PathBuf
Arguments used to record objects.
Source§type RecordOutput = ()
type RecordOutput = ()
Record output type.
Source§fn save_item<I: Serialize>(
&self,
item: I,
file: Self::RecordArgs,
) -> Result<(), RecorderError>
fn save_item<I: Serialize>( &self, item: I, file: Self::RecordArgs, ) -> Result<(), RecorderError>
Saves an item. Read more
Source§fn load_item<I: DeserializeOwned>(
&self,
file: &mut Self::LoadArgs,
) -> Result<I, RecorderError>
fn load_item<I: DeserializeOwned>( &self, file: &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
Auto Trait Implementations§
impl<S> Freeze for NamedMpkFileRecorder<S>where
PhantomData<S>: Freeze,
impl<S> RefUnwindSafe for NamedMpkFileRecorder<S>where
PhantomData<S>: RefUnwindSafe,
impl<S> Send for NamedMpkFileRecorder<S>where
PhantomData<S>: Send,
impl<S> Sync for NamedMpkFileRecorder<S>where
PhantomData<S>: Sync,
impl<S> Unpin for NamedMpkFileRecorder<S>where
PhantomData<S>: Unpin,
impl<S> UnsafeUnpin for NamedMpkFileRecorder<S>where
PhantomData<S>: UnsafeUnpin,
impl<S> UnwindSafe for NamedMpkFileRecorder<S>where
PhantomData<S>: 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