Enum cm_rust::Availability
pub enum Availability {
Required,
Optional,
SameAsTarget,
Transitional,
}
Expand description
Capability availability. See Availability
.
Variants§
Trait Implementations§
§impl Clone for Availability
impl Clone for Availability
§fn clone(&self) -> Availability
fn clone(&self) -> Availability
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 Availability
impl Debug for Availability
§impl Default for Availability
impl Default for Availability
§fn default() -> Availability
fn default() -> Availability
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for Availability
impl<'de> Deserialize<'de> for Availability
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Availability, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Availability, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for Availability
impl Display for Availability
source§impl FidlIntoNative<Availability> for Availability
impl FidlIntoNative<Availability> for Availability
fn fidl_into_native(self) -> Availability
§impl From<Availability> for Availability
impl From<Availability> for Availability
§fn from(input: Availability) -> Availability
fn from(input: Availability) -> Availability
Converts to this type from the input type.
§impl Hash for Availability
impl Hash for Availability
source§impl NativeIntoFidl<Availability> for Availability
impl NativeIntoFidl<Availability> for Availability
fn native_into_fidl(self) -> Availability
§impl PartialEq for Availability
impl PartialEq for Availability
§fn eq(&self, other: &Availability) -> bool
fn eq(&self, other: &Availability) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for Availability
impl PartialOrd for Availability
§fn partial_cmp(&self, other: &Availability) -> Option<Ordering>
fn partial_cmp(&self, other: &Availability) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more§impl Serialize for Availability
impl Serialize for Availability
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Availability
impl Eq for Availability
impl StructuralPartialEq for Availability
Auto Trait Implementations§
impl Freeze for Availability
impl RefUnwindSafe for Availability
impl Send for Availability
impl Sync for Availability
impl Unpin for Availability
impl UnwindSafe for Availability
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