Struct burn::record::BurnRecord
pub struct BurnRecord<I, B>where
B: Backend,{
pub metadata: BurnMetadata,
pub item: I,
/* private fields */
}
Expand description
Record that can be saved by a Recorder.
Fields§
§metadata: BurnMetadata
Metadata of the record.
item: I
Item to record.
Implementations§
§impl<I, B> BurnRecord<I, B>where
B: Backend,
impl<I, B> BurnRecord<I, B>where
B: Backend,
pub fn new<R>(item: I) -> BurnRecord<I, B>where
R: Recorder<B>,
pub fn new<R>(item: I) -> BurnRecord<I, B>where
R: Recorder<B>,
Trait Implementations§
§impl<I, B> Debug for BurnRecord<I, B>
impl<I, B> Debug for BurnRecord<I, B>
§impl<'de, I, B> Deserialize<'de> for BurnRecord<I, B>where
B: Backend,
I: Deserialize<'de>,
impl<'de, I, B> Deserialize<'de> for BurnRecord<I, B>where
B: Backend,
I: Deserialize<'de>,
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BurnRecord<I, B>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BurnRecord<I, B>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<I, B> Serialize for BurnRecord<I, B>
impl<I, B> Serialize for BurnRecord<I, B>
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl<I, B> Freeze for BurnRecord<I, B>where
I: Freeze,
impl<I, B> RefUnwindSafe for BurnRecord<I, B>where
I: RefUnwindSafe,
B: RefUnwindSafe,
impl<I, B> Send for BurnRecord<I, B>where
I: Send,
impl<I, B> Sync for BurnRecord<I, B>where
I: Sync,
impl<I, B> Unpin for BurnRecord<I, B>
impl<I, B> UnwindSafe for BurnRecord<I, B>where
I: UnwindSafe,
B: 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
§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 moresource§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