Struct fidl_fuchsia_component::StoppedPayload
source · pub struct StoppedPayload {
pub status: Option<i32>,
pub exit_code: Option<i64>,
/* private fields */
}
Expand description
Payload for Stopped events.
Fields§
§status: Option<i32>
The epitaph set on the fuchsia.component.runner/ComponentController protocol channel. This is the exit status of the component. The possible status values and their meaning are described in the definition of the ComponentController protocol.
exit_code: Option<i64>
The exit code of the component instance. Note that not all components will stop with an exit code.
Many program runtimes have the concept of an exit code. Runners may map that value to this field when applicable. For example, the ELF runner will publish the Zircon process return code here.
Trait Implementations§
source§impl Clone for StoppedPayload
impl Clone for StoppedPayload
source§fn clone(&self) -> StoppedPayload
fn clone(&self) -> StoppedPayload
Returns a copy 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 StoppedPayload
impl Debug for StoppedPayload
source§impl<D: ResourceDialect> Decode<StoppedPayload, D> for StoppedPayload
impl<D: ResourceDialect> Decode<StoppedPayload, D> for StoppedPayload
source§impl Default for StoppedPayload
impl Default for StoppedPayload
source§fn default() -> StoppedPayload
fn default() -> StoppedPayload
Returns the “default value” for a type. Read more
source§impl<D: ResourceDialect> Encode<StoppedPayload, D> for &StoppedPayload
impl<D: ResourceDialect> Encode<StoppedPayload, D> for &StoppedPayload
source§impl PartialEq for StoppedPayload
impl PartialEq for StoppedPayload
source§fn eq(&self, other: &StoppedPayload) -> bool
fn eq(&self, other: &StoppedPayload) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for StoppedPayload
impl TypeMarker for StoppedPayload
§type Owned = StoppedPayload
type Owned = StoppedPayload
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.source§impl ValueTypeMarker for StoppedPayload
impl ValueTypeMarker for StoppedPayload
§type Borrowed<'a> = &'a StoppedPayload
type Borrowed<'a> = &'a StoppedPayload
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for StoppedPayload
impl StructuralPartialEq for StoppedPayload
Auto Trait Implementations§
impl Freeze for StoppedPayload
impl RefUnwindSafe for StoppedPayload
impl Send for StoppedPayload
impl Sync for StoppedPayload
impl Unpin for StoppedPayload
impl UnwindSafe for StoppedPayload
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)