[−][src]Struct fluvio_dataplane_protocol::record::DefaultAsyncBuffer
Implementations
impl DefaultAsyncBuffer
[src]
pub fn new(val: Option<Vec<u8>>) -> Self
[src]
pub fn inner_value(self) -> Option<Vec<u8>>
[src]
pub fn inner_value_ref(&self) -> &Option<Vec<u8>>
[src]
pub fn len(&self) -> usize
[src]
pub fn is_binary(&self) -> bool
[src]
Check if value is binary content
pub fn describe(&self) -> String
[src]
Describe value - return text, binary, or 0 bytes
Trait Implementations
impl AsyncBuffer for DefaultAsyncBuffer
[src]
impl Debug for DefaultAsyncBuffer
[src]
impl Decoder for DefaultAsyncBuffer
[src]
fn decode<T>(&mut self, src: &mut T, _version: Version) -> Result<(), Error> where
T: Buf,
[src]
T: Buf,
fn decode_from<T>(src: &mut T, version: i16) -> Result<Self, Error> where
Self: Default,
T: Buf,
Self: Default,
T: Buf,
impl Default for DefaultAsyncBuffer
[src]
fn default() -> DefaultAsyncBuffer
[src]
impl Display for DefaultAsyncBuffer
[src]
impl Encoder for DefaultAsyncBuffer
[src]
fn write_size(&self, _version: Version) -> usize
[src]
fn encode<T>(&self, src: &mut T, _version: Version) -> Result<(), Error> where
T: BufMut,
[src]
T: BufMut,
fn as_bytes(&self, version: i16) -> Result<Bytes, Error>
impl<'a> From<&'a [u8]> for DefaultAsyncBuffer
[src]
impl From<String> for DefaultAsyncBuffer
[src]
impl From<Vec<u8>> for DefaultAsyncBuffer
[src]
Auto Trait Implementations
impl RefUnwindSafe for DefaultAsyncBuffer
impl Send for DefaultAsyncBuffer
impl Sync for DefaultAsyncBuffer
impl Unpin for DefaultAsyncBuffer
impl UnwindSafe for DefaultAsyncBuffer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,