Union fidl_next::WirePointer

source ·
#[repr(C, align(8))]
pub union WirePointer<'buf, T> {
    /* private fields */
}
Expand description

A raw FIDL pointer

Implementations§

source§

impl<'buf, T> WirePointer<'buf, T>

source

pub const fn null() -> Self

Returns the null wire pointer.

source

pub const fn dangling() -> Self

Returns the dangling wire pointer.

source

pub fn is_encoded_present(slot: Slot<'_, Self>) -> Result<bool, DecodeError>

Returns whether the wire pointer was encoded present.

source

pub fn encode_present(slot: Slot<'_, Self>)

Encodes that a pointer is present in a slot.

source

pub fn encode_absent(slot: Slot<'_, Self>)

Encodes that a pointer is absent in a slot.

source

pub fn set_decoded(slot: Slot<'_, Self>, ptr: Owned<'buf, T>)

Sets the decoded value of the pointer.

source

pub fn as_ptr(&self) -> *mut T

Returns the underlying pointer.

Auto Trait Implementations§

§

impl<'buf, T> Freeze for WirePointer<'buf, T>

§

impl<'buf, T> RefUnwindSafe for WirePointer<'buf, T>
where T: RefUnwindSafe,

§

impl<'buf, T> !Send for WirePointer<'buf, T>

§

impl<'buf, T> !Sync for WirePointer<'buf, T>

§

impl<'buf, T> Unpin for WirePointer<'buf, T>

§

impl<'buf, T> !UnwindSafe for WirePointer<'buf, T>

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

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 T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.