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§impl TypeMarker for StoppedPayload
impl TypeMarker for StoppedPayload
Source§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
Source§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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)