pub enum CapabilitySupport {
Supported,
Unsupported(CapabilityGapBehavior),
}Expand description
Whether a platform capability is supported.
Variants§
Supported
Unsupported(CapabilityGapBehavior)
Implementations§
Source§impl CapabilitySupport
impl CapabilitySupport
Sourcepub fn gap_behavior(&self) -> Option<CapabilityGapBehavior>
pub fn gap_behavior(&self) -> Option<CapabilityGapBehavior>
Return the gap behavior if unsupported, or None if supported.
Trait Implementations§
Source§impl Clone for CapabilitySupport
impl Clone for CapabilitySupport
Source§fn clone(&self) -> CapabilitySupport
fn clone(&self) -> CapabilitySupport
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 CapabilitySupport
impl Debug for CapabilitySupport
Source§impl<'de> Deserialize<'de> for CapabilitySupport
Custom serde: TOML uses flat strings like "supported", "unsupported_warn".
impl<'de> Deserialize<'de> for CapabilitySupport
Custom serde: TOML uses flat strings like "supported", "unsupported_warn".
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CapabilitySupport
impl PartialEq for CapabilitySupport
Source§impl Serialize for CapabilitySupport
impl Serialize for CapabilitySupport
impl Copy for CapabilitySupport
impl Eq for CapabilitySupport
impl StructuralPartialEq for CapabilitySupport
Auto Trait Implementations§
impl Freeze for CapabilitySupport
impl RefUnwindSafe for CapabilitySupport
impl Send for CapabilitySupport
impl Sync for CapabilitySupport
impl Unpin for CapabilitySupport
impl UnsafeUnpin for CapabilitySupport
impl UnwindSafe for CapabilitySupport
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