pub struct WireObjectType { /* private fields */ }Expand description
The wire type for zx::ObjectType.
Implementations§
Source§impl WireObjectType
impl WireObjectType
Sourcepub fn to_object_type(self) -> ObjectType
pub fn to_object_type(self) -> ObjectType
Returns an ObjectType with the same value as this wire type.
Trait Implementations§
Source§impl Clone for WireObjectType
impl Clone for WireObjectType
Source§fn clone(&self) -> WireObjectType
fn clone(&self) -> WireObjectType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WireObjectType
impl Debug for WireObjectType
Source§impl<D> Decode<D> for WireObjectTypewhere
D: ?Sized,
impl<D> Decode<D> for WireObjectTypewhere
D: ?Sized,
Source§fn decode(
slot: Slot<'_, WireObjectType>,
decoder: &mut D,
_: <WireObjectType as Constrained>::Constraint,
) -> Result<(), DecodeError>
fn decode( slot: Slot<'_, WireObjectType>, decoder: &mut D, _: <WireObjectType as Constrained>::Constraint, ) -> Result<(), DecodeError>
Decodes a value into a slot using a decoder. Read more
Source§impl<E> Encode<WireObjectType, E> for &ObjectTypewhere
E: ?Sized,
impl<E> Encode<WireObjectType, E> for &ObjectTypewhere
E: ?Sized,
Source§fn encode(
self,
encoder: &mut E,
out: &mut MaybeUninit<WireObjectType>,
constraint: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut E, out: &mut MaybeUninit<WireObjectType>, constraint: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<E> Encode<WireObjectType, E> for ObjectTypewhere
E: ?Sized,
impl<E> Encode<WireObjectType, E> for ObjectTypewhere
E: ?Sized,
Source§fn encode(
self,
encoder: &mut E,
out: &mut MaybeUninit<WireObjectType>,
constraint: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut E, out: &mut MaybeUninit<WireObjectType>, constraint: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl FromWire<WireObjectType> for ObjectType
impl FromWire<WireObjectType> for ObjectType
Source§fn from_wire(wire: WireObjectType) -> ObjectType
fn from_wire(wire: WireObjectType) -> ObjectType
Converts the given
wire to this type.Source§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl FromWireRef<WireObjectType> for ObjectType
impl FromWireRef<WireObjectType> for ObjectType
Source§fn from_wire_ref(wire: &WireObjectType) -> ObjectType
fn from_wire_ref(wire: &WireObjectType) -> ObjectType
Converts the given
wire reference to this type.Source§impl IntoNatural for WireObjectType
impl IntoNatural for WireObjectType
Source§type Natural = ObjectType
type Natural = ObjectType
A good default type for this wire type to convert into.
Source§fn into_natural(self) -> Self::Natural
fn into_natural(self) -> Self::Natural
Converts this type into its natural equivalent.
Source§impl Wire for WireObjectType
impl Wire for WireObjectType
Source§type Owned<'de> = WireObjectType
type Owned<'de> = WireObjectType
The owned wire type, restricted to the
'de lifetime.Source§fn zero_padding(out: &mut MaybeUninit<WireObjectType>)
fn zero_padding(out: &mut MaybeUninit<WireObjectType>)
Writes zeroes to the padding for this type, if any.
impl Copy for WireObjectType
impl Unconstrained for WireObjectType
Auto Trait Implementations§
impl Freeze for WireObjectType
impl RefUnwindSafe for WireObjectType
impl Send for WireObjectType
impl Sync for WireObjectType
impl Unpin for WireObjectType
impl UnwindSafe for WireObjectType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Constrained for Twhere
T: Unconstrained,
impl<T> Constrained for Twhere
T: Unconstrained,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
Source§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to Self