Enum TdispGuestUnbindReason
#[repr(i32)]pub enum TdispGuestUnbindReason {
Unknown = 0,
Graceful = 1,
}Expand description
For a guest-initiated unbind, the guest can provide a reason.
Variants§
Unknown = 0
The guest requested to unbind the device for an unspecified reason.
Graceful = 1
The guest requested to unbind the device because the device is being detached.
Implementations§
§impl TdispGuestUnbindReason
impl TdispGuestUnbindReason
pub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn from_str_name(value: &str) -> Option<TdispGuestUnbindReason>
pub fn from_str_name(value: &str) -> Option<TdispGuestUnbindReason>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
§impl Clone for TdispGuestUnbindReason
impl Clone for TdispGuestUnbindReason
§fn clone(&self) -> TdispGuestUnbindReason
fn clone(&self) -> TdispGuestUnbindReason
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 more§impl Debug for TdispGuestUnbindReason
impl Debug for TdispGuestUnbindReason
§impl Default for TdispGuestUnbindReason
impl Default for TdispGuestUnbindReason
§fn default() -> TdispGuestUnbindReason
fn default() -> TdispGuestUnbindReason
Returns the “default value” for a type. Read more
§impl Hash for TdispGuestUnbindReason
impl Hash for TdispGuestUnbindReason
§impl Ord for TdispGuestUnbindReason
impl Ord for TdispGuestUnbindReason
§fn cmp(&self, other: &TdispGuestUnbindReason) -> Ordering
fn cmp(&self, other: &TdispGuestUnbindReason) -> 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 TdispGuestUnbindReason
impl PartialEq for TdispGuestUnbindReason
§impl PartialOrd for TdispGuestUnbindReason
impl PartialOrd for TdispGuestUnbindReason
impl Copy for TdispGuestUnbindReason
impl Eq for TdispGuestUnbindReason
impl StructuralPartialEq for TdispGuestUnbindReason
Auto Trait Implementations§
impl Freeze for TdispGuestUnbindReason
impl RefUnwindSafe for TdispGuestUnbindReason
impl Send for TdispGuestUnbindReason
impl Sync for TdispGuestUnbindReason
impl Unpin for TdispGuestUnbindReason
impl UnwindSafe for TdispGuestUnbindReason
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