Enum CollaborativeRebootReason
#[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§
§impl CollaborativeRebootReason
impl CollaborativeRebootReason
pub fn from_primitive(prim: u32) -> Option<CollaborativeRebootReason>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
§impl Clone for CollaborativeRebootReason
impl Clone for CollaborativeRebootReason
§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 more§impl Debug for CollaborativeRebootReason
impl Debug for CollaborativeRebootReason
§impl<D> Decode<CollaborativeRebootReason, D> for CollaborativeRebootReasonwhere
D: ResourceDialect,
impl<D> Decode<CollaborativeRebootReason, D> for CollaborativeRebootReasonwhere
D: ResourceDialect,
§fn new_empty() -> CollaborativeRebootReason
fn new_empty() -> CollaborativeRebootReason
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<CollaborativeRebootReason, D> for CollaborativeRebootReasonwhere
D: ResourceDialect,
impl<D> Encode<CollaborativeRebootReason, D> for CollaborativeRebootReasonwhere
D: ResourceDialect,
§impl Hash for CollaborativeRebootReason
impl Hash for CollaborativeRebootReason
§impl Ord for CollaborativeRebootReason
impl Ord for CollaborativeRebootReason
§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
§impl PartialEq for CollaborativeRebootReason
impl PartialEq for CollaborativeRebootReason
§impl PartialOrd for CollaborativeRebootReason
impl PartialOrd for CollaborativeRebootReason
§impl TypeMarker for CollaborativeRebootReason
impl TypeMarker for CollaborativeRebootReason
§type Owned = CollaborativeRebootReason
type Owned = CollaborativeRebootReason
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 CollaborativeRebootReason
impl ValueTypeMarker for CollaborativeRebootReason
§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 more§fn borrow(
value: &<CollaborativeRebootReason as TypeMarker>::Owned,
) -> <CollaborativeRebootReason as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<CollaborativeRebootReason as TypeMarker>::Owned, ) -> <CollaborativeRebootReason as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl 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