pub struct RecordData(_);
Expand description
A type containing the data contents of a Record.
The RecordData
type provides useful conversions for
constructing it from any type that may convert into a Vec<u8>
.
This is the basis for flexible APIs that allow users to supply
various different argument types as record contents. See
the Producer API as an example.
Implementations
Trait Implementations
sourceimpl Clone for RecordData
impl Clone for RecordData
sourcefn clone(&self) -> RecordData
fn clone(&self) -> RecordData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RecordData
impl Debug for RecordData
sourceimpl Decoder for RecordData
impl Decoder for RecordData
sourceimpl Default for RecordData
impl Default for RecordData
sourcefn default() -> RecordData
fn default() -> RecordData
Returns the “default value” for a type. Read more
sourceimpl Display for RecordData
impl Display for RecordData
sourceimpl Encoder for RecordData
impl Encoder for RecordData
sourceimpl<V> From<V> for RecordData where
V: Into<Vec<u8, Global>>,
impl<V> From<V> for RecordData where
V: Into<Vec<u8, Global>>,
sourcefn from(value: V) -> RecordData
fn from(value: V) -> RecordData
Converts to this type from the input type.
sourceimpl PartialEq<RecordData> for RecordData
impl PartialEq<RecordData> for RecordData
sourcefn eq(&self, other: &RecordData) -> bool
fn eq(&self, other: &RecordData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RecordData) -> bool
fn ne(&self, other: &RecordData) -> bool
This method tests for !=
.
impl StructuralPartialEq for RecordData
Auto Trait Implementations
impl RefUnwindSafe for RecordData
impl Send for RecordData
impl Sync for RecordData
impl Unpin for RecordData
impl UnwindSafe for RecordData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more