#[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>
impl<'buf, T> WirePointer<'buf, T>
Sourcepub fn is_encoded_present(slot: Slot<'_, Self>) -> Result<bool, DecodeError>
pub fn is_encoded_present(slot: Slot<'_, Self>) -> Result<bool, DecodeError>
Returns whether the wire pointer was encoded present.
Sourcepub fn encode_present(slot: Slot<'_, Self>)
pub fn encode_present(slot: Slot<'_, Self>)
Encodes that a pointer is present in a slot.
Sourcepub fn encode_absent(slot: Slot<'_, Self>)
pub fn encode_absent(slot: Slot<'_, Self>)
Encodes that a pointer is absent in a slot.
Sourcepub fn set_decoded(slot: Slot<'_, Self>, ptr: Owned<'buf, T>)
pub fn set_decoded(slot: Slot<'_, Self>, ptr: Owned<'buf, T>)
Sets the decoded value of the 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> 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