pub enum CaptureSupport {
Supported,
Unsupported {
reason: Cow<'static, str>,
},
}Expand description
Whether a compiled kernel can participate in device-graph capture.
As with KernelMatch, a decline reason travels with the decision that
produced it. EPs must not maintain a separate reason table: capture
eligibility is often shape-, dtype-, warmup-, or implementation-dependent,
so separating the reason from the predicate would let diagnostics drift.
Variants§
Supported
The kernel’s warmed execution path satisfies the device-graph contract.
Unsupported
The kernel cannot currently be captured.
Implementations§
Source§impl CaptureSupport
impl CaptureSupport
Sourcepub fn unsupported(reason: impl Into<Cow<'static, str>>) -> Self
pub fn unsupported(reason: impl Into<Cow<'static, str>>) -> Self
Construct an unsupported result with its actionable decline reason.
Sourcepub fn is_supported(&self) -> bool
pub fn is_supported(&self) -> bool
Whether the kernel can currently participate in device-graph capture.
Trait Implementations§
Source§impl Clone for CaptureSupport
impl Clone for CaptureSupport
Source§fn clone(&self) -> CaptureSupport
fn clone(&self) -> CaptureSupport
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 CaptureSupport
impl Debug for CaptureSupport
impl Eq for CaptureSupport
Source§impl PartialEq for CaptureSupport
impl PartialEq for CaptureSupport
impl StructuralPartialEq for CaptureSupport
Auto Trait Implementations§
impl Freeze for CaptureSupport
impl RefUnwindSafe for CaptureSupport
impl Send for CaptureSupport
impl Sync for CaptureSupport
impl Unpin for CaptureSupport
impl UnsafeUnpin for CaptureSupport
impl UnwindSafe for CaptureSupport
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