#[repr(transparent)]pub struct ShutdownType(pub i32);Tuple Fields§
§0: i32Implementations§
Source§impl ShutdownType
impl ShutdownType
pub const IdleShutdown: Self
pub const ForcedShutdown: Self
Trait Implementations§
Source§impl Abi for ShutdownType
impl Abi for ShutdownType
Source§type Abi = ShutdownType
type Abi = ShutdownType
The abi representation of the implementing type. Read more
Source§fn set_abi(&mut self) -> *mut Self::Abi
fn set_abi(&mut self) -> *mut Self::Abi
Returns a pointer for setting the object’s value via an ABI call.
Source§unsafe fn from_abi(abi: Self::Abi) -> Result<Self, Error>
unsafe fn from_abi(abi: Self::Abi) -> Result<Self, Error>
Casts the ABI representation to a Rust object by taking ownership of the bits.
fn drop_param(_: &mut Param<'_, Self>)
Source§impl Clone for ShutdownType
impl Clone for ShutdownType
Source§fn clone(&self) -> ShutdownType
fn clone(&self) -> ShutdownType
Returns a duplicate 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 ShutdownType
impl Debug for ShutdownType
Source§impl Default for ShutdownType
impl Default for ShutdownType
Source§fn default() -> ShutdownType
fn default() -> ShutdownType
Returns the “default value” for a type. Read more
Source§impl From<i32> for ShutdownType
impl From<i32> for ShutdownType
Source§impl PartialEq for ShutdownType
impl PartialEq for ShutdownType
impl Copy for ShutdownType
impl Eq for ShutdownType
impl StructuralPartialEq for ShutdownType
Auto Trait Implementations§
impl Freeze for ShutdownType
impl RefUnwindSafe for ShutdownType
impl Send for ShutdownType
impl Sync for ShutdownType
impl Unpin for ShutdownType
impl UnwindSafe for ShutdownType
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