pub struct ProcessExceptionMetadata {
pub info: Option<ExceptionInfo>,
pub process: Option<Process>,
pub thread: Option<Thread>,
/* private fields */
}
Expand description
Intended to be read only metadada associated with an exception waiting in limbo. The handles provided will only have read-only access to the resource, so no modification can be done to them.
NOTE: Both process
and thread
will be valid if present.
Fields§
§info: Option<ExceptionInfo>
§process: Option<Process>
Only has ZX_RIGHT_READ and ZX_RIGHT_GET_PROPERTY rights.
thread: Option<Thread>
The thread that generated the exception. The process may have other threads that are not reflected here. Only has ZX_RIGHT_READ and ZX_RIGHT_GET_PROPERTY rights.
Implementations§
Trait Implementations§
source§impl Debug for ProcessExceptionMetadata
impl Debug for ProcessExceptionMetadata
source§impl Decode<ProcessExceptionMetadata> for ProcessExceptionMetadata
impl Decode<ProcessExceptionMetadata> for ProcessExceptionMetadata
source§impl Encode<ProcessExceptionMetadata> for &mut ProcessExceptionMetadata
impl Encode<ProcessExceptionMetadata> for &mut ProcessExceptionMetadata
source§impl Encode<ProcessExceptionMetadata> for ProcessExceptionMetadata
impl Encode<ProcessExceptionMetadata> for ProcessExceptionMetadata
source§impl PartialEq<ProcessExceptionMetadata> for ProcessExceptionMetadata
impl PartialEq<ProcessExceptionMetadata> for ProcessExceptionMetadata
source§fn eq(&self, other: &ProcessExceptionMetadata) -> bool
fn eq(&self, other: &ProcessExceptionMetadata) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ResourceTypeMarker for ProcessExceptionMetadata
impl ResourceTypeMarker for ProcessExceptionMetadata
§type Borrowed<'a> = &'a mut ProcessExceptionMetadata
type Borrowed<'a> = &'a mut ProcessExceptionMetadata
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 moresource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned
) -> Self::Borrowed<'a>
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 ProcessExceptionMetadata
impl TypeMarker for ProcessExceptionMetadata
§type Owned = ProcessExceptionMetadata
type Owned = ProcessExceptionMetadata
The owned Rust type which this FIDL type decodes into.
source§fn inline_align(_context: Context) -> usize
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
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
.§fn encode_is_copy() -> bool
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§fn decode_is_copy() -> bool
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.