pub struct Rights { /* private fields */ }Expand description
The wire type for zx::Rights.
Implementations§
Trait Implementations§
Source§impl Constrained for Rights
impl Constrained for Rights
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<D: ?Sized> Decode<D> for Rights
impl<D: ?Sized> Decode<D> for Rights
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<Rights, E> for &Rights
impl<E: ?Sized> Encode<Rights, E> for &Rights
Source§fn encode(
self,
encoder: &mut E,
out: &mut MaybeUninit<Rights>,
constraint: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut E, out: &mut MaybeUninit<Rights>, 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<Rights, E> for Rights
impl<E: ?Sized> Encode<Rights, E> for Rights
Source§fn encode(
self,
encoder: &mut E,
out: &mut MaybeUninit<Rights>,
constraint: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut E, out: &mut MaybeUninit<Rights>, 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<Rights> for Rights
impl FromWire<Rights> for Rights
Source§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl FromWireRef<Rights> for Rights
impl FromWireRef<Rights> for Rights
Source§fn from_wire_ref(wire: &Rights) -> Self
fn from_wire_ref(wire: &Rights) -> Self
Converts the given reference to this type.
Source§impl IntoNatural for Rights
impl IntoNatural for Rights
Source§impl Wire for Rights
impl Wire for Rights
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 Rights
Auto Trait Implementations§
impl Freeze for Rights
impl RefUnwindSafe for Rights
impl Send for Rights
impl Sync for Rights
impl Unpin for Rights
impl UnwindSafe for Rights
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