pub struct Builder<'a> { /* private fields */ }

Implementations§

source§

impl<'a> Builder<'a>

source

pub fn into_reader(self) -> Reader<'a>

source

pub fn reborrow(&mut self) -> Builder<'_>

source

pub fn reborrow_as_reader(&self) -> Reader<'_>

source

pub fn total_size(&self) -> Result<MessageSize>

source

pub fn get_metadata_version(self) -> u16

source

pub fn set_metadata_version(&mut self, value: u16)

source

pub fn get_watermark(self) -> u64

source

pub fn set_watermark(&mut self, value: u64)

source

pub fn get_deadline(self) -> u64

source

pub fn set_deadline(&mut self, value: u64)

source

pub fn get_otel_context(self) -> Result<Builder<'a>>

source

pub fn set_otel_context(&mut self, value: Reader<'_>)

source

pub fn init_otel_context(self, size: u32) -> Builder<'a>

source

pub fn has_otel_context(&self) -> bool

source

pub fn get_timestamp(self) -> Result<Builder<'a>>

source

pub fn set_timestamp(&mut self, value: Reader<'_>)

source

pub fn init_timestamp(self, size: u32) -> Builder<'a>

source

pub fn has_timestamp(&self) -> bool

Trait Implementations§

source§

impl<'a> FromPointerBuilder<'a> for Builder<'a>

source§

fn init_pointer(builder: PointerBuilder<'a>, _size: u32) -> Builder<'a>

source§

fn get_from_pointer( builder: PointerBuilder<'a>, default: Option<&'a [Word]> ) -> Result<Builder<'a>>

source§

impl<'a> FromStructBuilder<'a> for Builder<'a>

source§

fn new(builder: StructBuilder<'a>) -> Builder<'a>

source§

impl<'a> HasStructSize for Builder<'a>

source§

impl<'a> HasTypeId for Builder<'a>

source§

impl<'a> ImbueMut<'a> for Builder<'a>

source§

fn imbue_mut(&mut self, cap_table: &'a mut CapTable)

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for Builder<'a>

§

impl<'a> !Send for Builder<'a>

§

impl<'a> !Sync for Builder<'a>

§

impl<'a> Unpin for Builder<'a>

§

impl<'a> !UnwindSafe for Builder<'a>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.