pub struct BackendDescriptor {
pub id: String,
pub implementation_version: String,
pub platform: String,
pub architecture: String,
pub kernel_release: Option<String>,
pub privacy_profile: String,
pub capabilities: Vec<ObservationCapability>,
pub unsupported_capabilities: Vec<ObservationCapability>,
}Expand description
Machine-readable identity and capability declaration for one backend.
Fields§
§id: String§implementation_version: String§platform: String§architecture: String§kernel_release: Option<String>§privacy_profile: String§capabilities: Vec<ObservationCapability>§unsupported_capabilities: Vec<ObservationCapability>Implementations§
Source§impl BackendDescriptor
impl BackendDescriptor
Sourcepub fn validate_capability_partition(&self) -> Result<(), String>
pub fn validate_capability_partition(&self) -> Result<(), String>
Prove that supported and unsupported sets form an exact, disjoint partition of the declared capability universe.
Trait Implementations§
Source§impl Clone for BackendDescriptor
impl Clone for BackendDescriptor
Source§impl Debug for BackendDescriptor
impl Debug for BackendDescriptor
impl Eq for BackendDescriptor
Source§impl PartialEq for BackendDescriptor
impl PartialEq for BackendDescriptor
impl StructuralPartialEq for BackendDescriptor
Auto Trait Implementations§
impl Freeze for BackendDescriptor
impl RefUnwindSafe for BackendDescriptor
impl Send for BackendDescriptor
impl Sync for BackendDescriptor
impl Unpin for BackendDescriptor
impl UnsafeUnpin for BackendDescriptor
impl UnwindSafe for BackendDescriptor
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