Union WireEnvelope
#[repr(C, align(8))]
pub union WireEnvelope {
/* private fields */
}
Expand description
A FIDL envelope
Implementations§
§impl WireEnvelope
impl WireEnvelope
pub fn encode_zero(slot: Slot<'_, WireEnvelope>)
pub fn encode_zero(slot: Slot<'_, WireEnvelope>)
Encodes a zero envelope into a slot.
pub fn encode_value_static<E, T>(
value: &mut T,
encoder: &mut E,
slot: Slot<'_, WireEnvelope>,
) -> Result<(), EncodeError>
pub fn encode_value_static<E, T>( value: &mut T, encoder: &mut E, slot: Slot<'_, WireEnvelope>, ) -> Result<(), EncodeError>
Encodes a 'static
value into an envelope with an encoder.
pub fn encode_value<E, T>(
value: &mut T,
encoder: &mut E,
slot: Slot<'_, WireEnvelope>,
) -> Result<(), EncodeError>
pub fn encode_value<E, T>( value: &mut T, encoder: &mut E, slot: Slot<'_, WireEnvelope>, ) -> Result<(), EncodeError>
Encodes a value into an envelope with an encoder.
pub fn zero() -> WireEnvelope
pub fn zero() -> WireEnvelope
Returns the zero envelope.
pub fn is_encoded_zero(slot: Slot<'_, WireEnvelope>) -> bool
pub fn is_encoded_zero(slot: Slot<'_, WireEnvelope>) -> bool
Returns whether a envelope slot is encoded as zero.
pub fn decode_unknown_static<D>(
slot: Slot<'_, WireEnvelope>,
decoder: &mut D,
) -> Result<(), DecodeError>where
D: InternalHandleDecoder + ?Sized,
pub fn decode_unknown_static<D>(
slot: Slot<'_, WireEnvelope>,
decoder: &mut D,
) -> Result<(), DecodeError>where
D: InternalHandleDecoder + ?Sized,
Decodes and discards a static type in an envelope.
pub fn decode_unknown<D>(
slot: Slot<'_, WireEnvelope>,
decoder: &mut D,
) -> Result<(), DecodeError>
pub fn decode_unknown<D>( slot: Slot<'_, WireEnvelope>, decoder: &mut D, ) -> Result<(), DecodeError>
Decodes and discards an unknown value in an envelope.
pub fn decode_as_static<D, T>(
slot: Slot<'_, WireEnvelope>,
decoder: &mut D,
) -> Result<(), DecodeError>
pub fn decode_as_static<D, T>( slot: Slot<'_, WireEnvelope>, decoder: &mut D, ) -> Result<(), DecodeError>
Decodes a value of a known type from an envelope.
pub fn decode_as<D, T>(
slot: Slot<'_, WireEnvelope>,
decoder: &mut D,
) -> Result<(), DecodeError>
pub fn decode_as<D, T>( slot: Slot<'_, WireEnvelope>, decoder: &mut D, ) -> Result<(), DecodeError>
Decodes a value of a known type from an envelope.
pub unsafe fn deref_unchecked<T>(&self) -> &T
pub unsafe fn deref_unchecked<T>(&self) -> &T
Returns a reference to the contained T
.
§Safety
The envelope must have been successfully decoded as a T
.
pub unsafe fn clone_unchecked<T>(&self) -> WireEnvelopewhere
T: Clone,
pub unsafe fn clone_unchecked<T>(&self) -> WireEnvelopewhere
T: Clone,
Clones the envelope, assuming that it contains an inline T
.
§Safety
The envelope must have been successfully decoded as a T
.
Auto Trait Implementations§
impl Freeze for WireEnvelope
impl RefUnwindSafe for WireEnvelope
impl !Send for WireEnvelope
impl !Sync for WireEnvelope
impl Unpin for WireEnvelope
impl UnwindSafe for WireEnvelope
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