#[repr(u32)]pub enum CollaborativeRebootReason {
SystemUpdate = 1,
NetstackMigration = 2,
}
Expand description
The reason why a collaborative reboot was scheduled.
Variants§
SystemUpdate = 1
A new system update has been downloaded. A reboot is required to apply the update.
NetstackMigration = 2
The configured netstack version on the system has changed. A reboot is required to start the new Netstack.
Implementations§
Source§impl CollaborativeRebootReason
impl CollaborativeRebootReason
pub fn from_primitive(prim: u32) -> Option<Self>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
Source§impl Clone for CollaborativeRebootReason
impl Clone for CollaborativeRebootReason
Source§fn clone(&self) -> CollaborativeRebootReason
fn clone(&self) -> CollaborativeRebootReason
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 CollaborativeRebootReason
impl Debug for CollaborativeRebootReason
Source§impl<D: ResourceDialect> Decode<CollaborativeRebootReason, D> for CollaborativeRebootReason
impl<D: ResourceDialect> Decode<CollaborativeRebootReason, D> for CollaborativeRebootReason
Source§impl<D: ResourceDialect> Encode<CollaborativeRebootReason, D> for CollaborativeRebootReason
impl<D: ResourceDialect> Encode<CollaborativeRebootReason, D> for CollaborativeRebootReason
Source§impl Hash for CollaborativeRebootReason
impl Hash for CollaborativeRebootReason
Source§impl Ord for CollaborativeRebootReason
impl Ord for CollaborativeRebootReason
Source§fn cmp(&self, other: &CollaborativeRebootReason) -> Ordering
fn cmp(&self, other: &CollaborativeRebootReason) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for CollaborativeRebootReason
impl PartialOrd for CollaborativeRebootReason
Source§impl TypeMarker for CollaborativeRebootReason
impl TypeMarker for CollaborativeRebootReason
Source§type Owned = CollaborativeRebootReason
type Owned = CollaborativeRebootReason
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
.Source§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 moreSource§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 CollaborativeRebootReason
impl ValueTypeMarker for CollaborativeRebootReason
Source§type Borrowed<'a> = CollaborativeRebootReason
type Borrowed<'a> = CollaborativeRebootReason
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 Copy for CollaborativeRebootReason
impl Eq for CollaborativeRebootReason
impl StructuralPartialEq for CollaborativeRebootReason
Auto Trait Implementations§
impl Freeze for CollaborativeRebootReason
impl RefUnwindSafe for CollaborativeRebootReason
impl Send for CollaborativeRebootReason
impl Sync for CollaborativeRebootReason
impl Unpin for CollaborativeRebootReason
impl UnwindSafe for CollaborativeRebootReason
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