Struct NamedMpkBytesRecorder
pub struct NamedMpkBytesRecorder<S>where
S: PrecisionSettings,{ /* private fields */ }
Expand description
In memory recorder using the Named MessagePack.
Implementations§
§
impl<S> NamedMpkBytesRecorder<S>
where
S: PrecisionSettings,
impl<S> NamedMpkBytesRecorder<S>
where
S: PrecisionSettings,
pub fn new() ->
NamedMpkBytesRecorder<S>
pub fn new() -> NamedMpkBytesRecorder<S>
Constructs a new NamedMpkBytesRecorder
.
Trait Implementations§
§
impl<S> Clone for NamedMpkBytesRecorder<S>
where
S: Clone + PrecisionSettings,
impl<S> Clone for NamedMpkBytesRecorder<S>
where
S: Clone + PrecisionSettings,
§
fn clone(&self) -> NamedMpkBytesRecorder<S>
fn clone(&self) -> NamedMpkBytesRecorder<S>
Returns a copy 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
more
§
impl<S> Debug for NamedMpkBytesRecorder<S>
where
S: Debug + PrecisionSettings,
impl<S> Debug for NamedMpkBytesRecorder<S>
where
S: Debug + PrecisionSettings,
§
impl<S> Default for NamedMpkBytesRecorder<S>
where
S: Default + PrecisionSettings,
impl<S> Default for NamedMpkBytesRecorder<S>
where
S: Default + PrecisionSettings,
§
fn default() -> NamedMpkBytesRecorder<S>
fn default() -> NamedMpkBytesRecorder<S>
Returns the “default value” for a type. Read
more
§
impl<S, B> Recorder<B> for NamedMpkBytesRecorder<S>
where
S: PrecisionSettings,
B: Backend,
impl<S, B> Recorder<B> for NamedMpkBytesRecorder<S>
where
S: PrecisionSettings,
B: Backend,
§
type RecordArgs = ()
type RecordArgs = ()
Arguments used to record objects.
§
type RecordOutput = Vec<u8>
type RecordOutput = Vec<u8>
Record output type.
§
fn save_item<I>(
&self,
item: I,
_args: <NamedMpkBytesRecorder<S>
as Recorder<B>>::RecordArgs,
) -> Result<<NamedMpkBytesRecorder<S>
as Recorder<B>>::RecordOutput, RecorderError>where
I: Serialize,
fn save_item<I>(
&self,
item: I,
_args: <NamedMpkBytesRecorder<S>
as Recorder<B>>::RecordArgs,
) -> Result<<NamedMpkBytesRecorder<S>
as Recorder<B>>::RecordOutput, RecorderError>where
I: Serialize,
Saves an item. Read more
§
fn load_item<I>(
&self,
args: &mut <NamedMpkBytesRecorder<S>
as Recorder<B>>::LoadArgs,
) -> Result<I, RecorderError>where
I: DeserializeOwned,
fn load_item<I>(
&self,
args: &mut <NamedMpkBytesRecorder<S>
as Recorder<B>>::LoadArgs,
) -> Result<I, RecorderError>where
I: DeserializeOwned,
Loads an item. Read more
§
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, B> BytesRecorder<B, Vec<u8>> for NamedMpkBytesRecorder<S>
where
S: PrecisionSettings,
B: Backend,
Auto Trait Implementations§
impl<S> Freeze for NamedMpkBytesRecorder<S>
impl<S> RefUnwindSafe for NamedMpkBytesRecorder<S>
where
S: RefUnwindSafe,
impl<S> Send for NamedMpkBytesRecorder<S>
impl<S> Sync for NamedMpkBytesRecorder<S>
impl<S> Unpin for NamedMpkBytesRecorder<S>
where
S: Unpin,
impl<S> UnwindSafe for NamedMpkBytesRecorder<S>
where
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
Source§
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§
impl<T> Instrument for T
impl<T> Instrument for T
§
fn instrument(self, span: Span) ->
Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§
fn in_current_span(self) ->
Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§
impl<T> IntoEither for T
impl<T> IntoEither for T
Source§
fn into_either(self, into_left: bool)
-> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read
more
Source§
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read
more
§
impl<T> Pointable for T
impl<T> Pointable for T
§
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§
impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§
fn read_from_little_endian(read: &mut
R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.