Struct StoppedPayload
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§
§impl Clone for StoppedPayload
impl Clone for StoppedPayload
§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 more§impl Debug for StoppedPayload
impl Debug for StoppedPayload
§impl<D> Decode<StoppedPayload, D> for StoppedPayloadwhere
D: ResourceDialect,
impl<D> Decode<StoppedPayload, D> for StoppedPayloadwhere
D: ResourceDialect,
§fn new_empty() -> StoppedPayload
fn new_empty() -> StoppedPayload
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for StoppedPayload
impl Default for StoppedPayload
§fn default() -> StoppedPayload
fn default() -> StoppedPayload
Returns the “default value” for a type. Read more
§impl<D> Encode<StoppedPayload, D> for &StoppedPayloadwhere
D: ResourceDialect,
impl<D> Encode<StoppedPayload, D> for &StoppedPayloadwhere
D: ResourceDialect,
§impl PartialEq for StoppedPayload
impl PartialEq for StoppedPayload
§impl TypeMarker for StoppedPayload
impl TypeMarker for StoppedPayload
§type Owned = StoppedPayload
type Owned = StoppedPayload
The owned Rust type which this FIDL type decodes into.
§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.
§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.§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 more§fn borrow(
value: &<StoppedPayload as TypeMarker>::Owned,
) -> <StoppedPayload as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<StoppedPayload as TypeMarker>::Owned, ) -> <StoppedPayload as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl 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