#[repr(C, align(8))]
pub union WirePointer<T> {
/* private fields */
}
Expand description
A raw FIDL pointer
Implementations§
Source§impl<T> WirePointer<T>
impl<T> WirePointer<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: *mut T)
pub fn set_decoded(slot: Slot<'_, Self>, ptr: *mut T)
Sets the decoded value of the pointer.
Auto Trait Implementations§
impl<T> Freeze for WirePointer<T>
impl<T> RefUnwindSafe for WirePointer<T>where
T: RefUnwindSafe,
impl<T> !Send for WirePointer<T>
impl<T> !Sync for WirePointer<T>
impl<T> Unpin for WirePointer<T>
impl<T> UnwindSafe for WirePointer<T>where
T: RefUnwindSafe,
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