pub struct MicrodeStopRequest {
pub exit_code: Option<i32>,
pub error: Option<MicrodeError>,
}Expand description
A non-blocking request for orderly lifecycle termination.
Fields§
§exit_code: Option<i32>§error: Option<MicrodeError>Implementations§
Source§impl MicrodeStopRequest
impl MicrodeStopRequest
pub const fn success() -> Self
pub const fn with_exit_code(exit_code: i32) -> Self
pub fn with_error(error: MicrodeError) -> Self
pub fn with_exit_code_and_error(exit_code: i32, error: MicrodeError) -> Self
Trait Implementations§
Source§impl Clone for MicrodeStopRequest
impl Clone for MicrodeStopRequest
Source§fn clone(&self) -> MicrodeStopRequest
fn clone(&self) -> MicrodeStopRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MicrodeStopRequest
impl Debug for MicrodeStopRequest
Source§impl Default for MicrodeStopRequest
impl Default for MicrodeStopRequest
Source§fn default() -> MicrodeStopRequest
fn default() -> MicrodeStopRequest
Returns the “default value” for a type. Read more
impl Eq for MicrodeStopRequest
Source§impl PartialEq for MicrodeStopRequest
impl PartialEq for MicrodeStopRequest
impl StructuralPartialEq for MicrodeStopRequest
Auto Trait Implementations§
impl Freeze for MicrodeStopRequest
impl RefUnwindSafe for MicrodeStopRequest
impl Send for MicrodeStopRequest
impl Sync for MicrodeStopRequest
impl Unpin for MicrodeStopRequest
impl UnsafeUnpin for MicrodeStopRequest
impl UnwindSafe for MicrodeStopRequest
Blanket Implementations§
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