pub struct ObjectType { /* private fields */ }Expand description
The wire type for zx::ObjectType.
Implementations§
Source§impl ObjectType
impl ObjectType
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 ObjectType
impl Clone for ObjectType
Source§fn clone(&self) -> ObjectType
fn clone(&self) -> ObjectType
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 Constrained for ObjectType
impl Constrained for ObjectType
Source§type Constraint = ()
type Constraint = ()
Type of constraint information for this type.
Source§fn validate(
_: Slot<'_, Self>,
_: Self::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, Self>, _: Self::Constraint, ) -> Result<(), ValidationError>
Validate a slot of this type against a constraint. Can be called when
pointers/envelopes are just presence markers.
Source§impl Debug for ObjectType
impl Debug for ObjectType
Source§impl<D: ?Sized> Decode<D> for ObjectType
impl<D: ?Sized> Decode<D> for ObjectType
Source§fn decode(
slot: Slot<'_, Self>,
decoder: &mut D,
_: Self::Constraint,
) -> Result<(), DecodeError>
fn decode( slot: Slot<'_, Self>, decoder: &mut D, _: Self::Constraint, ) -> Result<(), DecodeError>
Decodes a value into a slot using a decoder. Read more
Source§impl<E: ?Sized> Encode<ObjectType, E> for &ObjectType
impl<E: ?Sized> Encode<ObjectType, E> for &ObjectType
Source§fn encode(
self,
encoder: &mut E,
out: &mut MaybeUninit<ObjectType>,
constraint: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut E, out: &mut MaybeUninit<ObjectType>, 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: ?Sized> Encode<ObjectType, E> for ObjectType
impl<E: ?Sized> Encode<ObjectType, E> for ObjectType
Source§fn encode(
self,
encoder: &mut E,
out: &mut MaybeUninit<ObjectType>,
constraint: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut E, out: &mut MaybeUninit<ObjectType>, 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<ObjectType> for ObjectType
impl FromWire<ObjectType> for ObjectType
Source§fn from_wire(wire: ObjectType) -> Self
fn from_wire(wire: ObjectType) -> Self
Converts the given owned value to this type.
Source§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl FromWireRef<ObjectType> for ObjectType
impl FromWireRef<ObjectType> for ObjectType
Source§fn from_wire_ref(wire: &ObjectType) -> Self
fn from_wire_ref(wire: &ObjectType) -> Self
Converts the given reference to this type.
Source§impl IntoNatural for ObjectType
impl IntoNatural for ObjectType
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 ObjectType
impl Wire for ObjectType
Source§type Narrowed<'de> = ObjectType
type Narrowed<'de> = ObjectType
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(out: &mut MaybeUninit<Self>)
fn zero_padding(out: &mut MaybeUninit<Self>)
Writes zeroes to the padding for this type, if any.
impl Copy for ObjectType
Auto Trait Implementations§
impl Freeze for ObjectType
impl RefUnwindSafe for ObjectType
impl Send for ObjectType
impl Sync for ObjectType
impl Unpin for ObjectType
impl UnwindSafe for ObjectType
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