Struct fluvio_smartstream::RecordData [−][src]
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
impl RecordData
[src]
impl RecordData
[src]pub fn new<T>(val: T) -> RecordData where
T: Into<Bytes>,
[src]
T: Into<Bytes>,
👎 Deprecated since 0.5.1:
Use ‘From::from’ instead
impl RecordData
[src]
impl RecordData
[src]Trait Implementations
impl Debug for RecordData
[src]
impl Debug for RecordData
[src]impl Decoder for RecordData
[src]
impl Decoder for RecordData
[src]impl Default for RecordData
[src]
impl Default for RecordData
[src]pub fn default() -> RecordData
[src]
pub fn default() -> RecordData
[src]Returns the “default value” for a type. Read more
impl Display for RecordData
[src]
impl Display for RecordData
[src]impl Encoder for RecordData
[src]
impl Encoder for RecordData
[src]impl<V> From<V> for RecordData where
V: Into<Vec<u8, Global>>,
[src]
impl<V> From<V> for RecordData where
V: Into<Vec<u8, Global>>,
[src]pub fn from(value: V) -> RecordData
[src]
pub fn from(value: V) -> RecordData
[src]Performs the conversion.
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]