pub struct Handles {
Show 27 fields pub handle_handle: Handle, pub process_handle: Process, pub thread_handle: Thread, pub vmo_handle: Vmo, pub event_handle: Event, pub port_handle: Port, pub socket_handle: Socket, pub eventpair_handle: EventPair, pub job_handle: Job, pub vmar_handle: Vmar, pub fifo_handle: Fifo, pub timer_handle: Timer, pub nullable_handle_handle: Option<Handle>, pub nullable_process_handle: Option<Process>, pub nullable_thread_handle: Option<Thread>, pub nullable_vmo_handle: Option<Vmo>, pub nullable_channel_handle: Option<Channel>, pub nullable_event_handle: Option<Event>, pub nullable_port_handle: Option<Port>, pub nullable_interrupt_handle: Option<Interrupt>, pub nullable_log_handle: Option<DebugLog>, pub nullable_socket_handle: Option<Socket>, pub nullable_eventpair_handle: Option<EventPair>, pub nullable_job_handle: Option<Job>, pub nullable_vmar_handle: Option<Vmar>, pub nullable_fifo_handle: Option<Fifo>, pub nullable_timer_handle: Option<Timer>,
}

Fields§

§handle_handle: Handle§process_handle: Process§thread_handle: Thread§vmo_handle: Vmo§event_handle: Event§port_handle: Port§socket_handle: Socket§eventpair_handle: EventPair§job_handle: Job§vmar_handle: Vmar§fifo_handle: Fifo§timer_handle: Timer§nullable_handle_handle: Option<Handle>§nullable_process_handle: Option<Process>§nullable_thread_handle: Option<Thread>§nullable_vmo_handle: Option<Vmo>§nullable_channel_handle: Option<Channel>§nullable_event_handle: Option<Event>§nullable_port_handle: Option<Port>§nullable_interrupt_handle: Option<Interrupt>§nullable_log_handle: Option<DebugLog>§nullable_socket_handle: Option<Socket>§nullable_eventpair_handle: Option<EventPair>§nullable_job_handle: Option<Job>§nullable_vmar_handle: Option<Vmar>§nullable_fifo_handle: Option<Fifo>§nullable_timer_handle: Option<Timer>

Trait Implementations§

source§

impl Debug for Handles

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Decode<Handles> for Handles

source§

fn new_empty() -> Self

Creates a valid instance of Self. The specific value does not matter, since it will be overwritten by decode.
source§

unsafe fn decode( &mut self, decoder: &mut Decoder<'_>, offset: usize, _depth: Depth ) -> Result<()>

Decodes an object of type T from the decoder’s buffers into self. Read more
source§

impl Encode<Handles> for &mut Handles

source§

unsafe fn encode( self, encoder: &mut Encoder<'_>, offset: usize, _depth: Depth ) -> Result<()>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
source§

impl<T0: Encode<HandleType<Handle, { _ }, 2147483648>>, T1: Encode<HandleType<Process, { _ }, 2147483648>>, T2: Encode<HandleType<Thread, { _ }, 2147483648>>, T3: Encode<HandleType<Vmo, { _ }, 2147483648>>, T4: Encode<HandleType<Event, { _ }, 2147483648>>, T5: Encode<HandleType<Port, { _ }, 2147483648>>, T6: Encode<HandleType<Socket, { _ }, 2147483648>>, T7: Encode<HandleType<EventPair, { _ }, 2147483648>>, T8: Encode<HandleType<Job, { _ }, 2147483648>>, T9: Encode<HandleType<Vmar, { _ }, 2147483648>>, T10: Encode<HandleType<Fifo, { _ }, 2147483648>>, T11: Encode<HandleType<Timer, { _ }, 2147483648>>, T12: Encode<Optional<HandleType<Handle, { _ }, 2147483648>>>, T13: Encode<Optional<HandleType<Process, { _ }, 2147483648>>>, T14: Encode<Optional<HandleType<Thread, { _ }, 2147483648>>>, T15: Encode<Optional<HandleType<Vmo, { _ }, 2147483648>>>, T16: Encode<Optional<HandleType<Channel, { _ }, 2147483648>>>, T17: Encode<Optional<HandleType<Event, { _ }, 2147483648>>>, T18: Encode<Optional<HandleType<Port, { _ }, 2147483648>>>, T19: Encode<Optional<HandleType<Interrupt, { _ }, 2147483648>>>, T20: Encode<Optional<HandleType<DebugLog, { _ }, 2147483648>>>, T21: Encode<Optional<HandleType<Socket, { _ }, 2147483648>>>, T22: Encode<Optional<HandleType<EventPair, { _ }, 2147483648>>>, T23: Encode<Optional<HandleType<Job, { _ }, 2147483648>>>, T24: Encode<Optional<HandleType<Vmar, { _ }, 2147483648>>>, T25: Encode<Optional<HandleType<Fifo, { _ }, 2147483648>>>, T26: Encode<Optional<HandleType<Timer, { _ }, 2147483648>>>> Encode<Handles> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26)

source§

unsafe fn encode( self, encoder: &mut Encoder<'_>, offset: usize, depth: Depth ) -> Result<()>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
source§

impl Hash for Handles

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for Handles

source§

fn cmp(&self, other: &Handles) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Handles

source§

fn eq(&self, other: &Handles) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Handles

source§

fn partial_cmp(&self, other: &Handles) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl ResourceTypeMarker for Handles

§

type Borrowed<'a> = &'a mut Handles

The Rust type to use for encoding. This is a particular Encode<Self> type cheaply obtainable from &mut Self::Owned. There are three cases: Read more
source§

fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned ) -> Self::Borrowed<'a>

Cheaply converts from &mut Self::Owned to Self::Borrowed. For HandleBased types this is “take” (it returns an owned handle and replaces value with Handle::invalid), and for all other types it is “borrow” (just converts from one reference to another).
source§

impl TypeMarker for Handles

§

type Owned = Handles

The owned Rust type which this FIDL type decodes into.
source§

fn inline_align(_context: Context) -> usize

Returns the minimum required alignment of the inline portion of the encoded object. It must be a (nonzero) power of two.
source§

fn inline_size(_context: Context) -> usize

Returns the size of the inline portion of the encoded object, including padding for alignment. Must be a multiple of inline_align.
source§

fn encode_is_copy() -> bool

Returns true if the memory layout of Self::Owned matches the FIDL wire format and encoding requires no validation. When true, we can optimize encoding arrays and vectors of Self::Owned to a single memcpy. Read more
source§

fn decode_is_copy() -> bool

Returns true if the memory layout of Self::Owned matches the FIDL wire format and decoding requires no validation. When true, we can optimize decoding arrays and vectors of Self::Owned to a single memcpy.
source§

impl Eq for Handles

source§

impl Standalone for Handles

source§

impl StructuralPartialEq for Handles

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Encode<Ambiguous1> for T

source§

unsafe fn encode( self, _encoder: &mut Encoder<'_>, _offset: usize, _depth: Depth ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
source§

impl<T> Encode<Ambiguous2> for T

source§

unsafe fn encode( self, _encoder: &mut Encoder<'_>, _offset: usize, _depth: Depth ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more