pub struct DeviceCapabilities { /* private fields */ }Expand description
Fail-closed capabilities discovered from a backend and device.
Implementations§
Source§impl DeviceCapabilities
impl DeviceCapabilities
Sourcepub const fn new(
exact_completion: bool,
transfers: bool,
collectives: bool,
) -> Self
pub const fn new( exact_completion: bool, transfers: bool, collectives: bool, ) -> Self
Creates an exact fail-closed device mechanism report.
Sourcepub const fn exact_completion(&self) -> bool
pub const fn exact_completion(&self) -> bool
Returns whether exact completion observation is available.
Sourcepub const fn collectives(&self) -> bool
pub const fn collectives(&self) -> bool
Returns whether collective execution is available.
Trait Implementations§
Source§impl Clone for DeviceCapabilities
impl Clone for DeviceCapabilities
Source§fn clone(&self) -> DeviceCapabilities
fn clone(&self) -> DeviceCapabilities
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeviceCapabilities
impl Debug for DeviceCapabilities
Source§impl Default for DeviceCapabilities
impl Default for DeviceCapabilities
Source§fn default() -> DeviceCapabilities
fn default() -> DeviceCapabilities
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceCapabilities
impl<'de> Deserialize<'de> for DeviceCapabilities
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
impl Eq for DeviceCapabilities
Source§impl PartialEq for DeviceCapabilities
impl PartialEq for DeviceCapabilities
Source§impl Serialize for DeviceCapabilities
impl Serialize for DeviceCapabilities
impl StructuralPartialEq for DeviceCapabilities
Auto Trait Implementations§
impl Freeze for DeviceCapabilities
impl RefUnwindSafe for DeviceCapabilities
impl Send for DeviceCapabilities
impl Sync for DeviceCapabilities
impl Unpin for DeviceCapabilities
impl UnsafeUnpin for DeviceCapabilities
impl UnwindSafe for DeviceCapabilities
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