Union WirePointer
#[repr(C, align(8))]
pub union WirePointer<'de, T> {
/* private fields */
}
Expand description
A raw FIDL pointer
Implementations§
§impl<T> WirePointer<'_, T>
impl<T> WirePointer<'_, T>
pub fn is_encoded_present(
slot: Slot<'_, WirePointer<'_, T>>,
) -> Result<bool, DecodeError>
pub fn is_encoded_present( slot: Slot<'_, WirePointer<'_, T>>, ) -> Result<bool, DecodeError>
Returns whether the wire pointer was encoded present.
pub fn encode_present(out: &mut MaybeUninit<WirePointer<'_, T>>)
pub fn encode_present(out: &mut MaybeUninit<WirePointer<'_, T>>)
Encodes that a pointer is present in an output.
pub fn encode_absent(out: &mut MaybeUninit<WirePointer<'_, T>>)
pub fn encode_absent(out: &mut MaybeUninit<WirePointer<'_, T>>)
Encodes that a pointer is absent in a slot.
pub fn set_decoded(slot: Slot<'_, WirePointer<'_, T>>, ptr: *mut T)
pub fn set_decoded(slot: Slot<'_, WirePointer<'_, T>>, ptr: *mut T)
Sets the decoded value of the pointer.
Trait Implementations§
impl<T> Send for WirePointer<'_, T>where
T: Send,
impl<T> Sync for WirePointer<'_, T>where
T: Sync,
Auto Trait Implementations§
impl<'de, T> Freeze for WirePointer<'de, T>
impl<'de, T> RefUnwindSafe for WirePointer<'de, T>where
T: RefUnwindSafe,
impl<'de, T> Unpin for WirePointer<'de, T>
impl<'de, T> !UnwindSafe for WirePointer<'de, T>
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