pub struct CapabilityRejection { /* private fields */ }Expand description
Typed internal rejection rendered to stable text at an adapter boundary.
Implementations§
Source§impl CapabilityRejection
impl CapabilityRejection
Sourcepub const fn unsupported_format(reason: &'static str) -> Self
pub const fn unsupported_format(reason: &'static str) -> Self
Reject an unsupported pixel or sample format.
Sourcepub const fn unsupported_sampling(reason: &'static str) -> Self
pub const fn unsupported_sampling(reason: &'static str) -> Self
Reject unsupported component sampling.
Sourcepub const fn unsupported_bit_depth(reason: &'static str) -> Self
pub const fn unsupported_bit_depth(reason: &'static str) -> Self
Reject unsupported sample precision or coded bitplanes.
Sourcepub const fn unsupported_operation(reason: &'static str) -> Self
pub const fn unsupported_operation(reason: &'static str) -> Self
Reject an unsupported operation.
Sourcepub const fn missing_prepared_plan(reason: &'static str) -> Self
pub const fn missing_prepared_plan(reason: &'static str) -> Self
Reject an absent or incompatible prepared plan.
Sourcepub const fn unsupported_container(reason: &'static str) -> Self
pub const fn unsupported_container(reason: &'static str) -> Self
Reject an unsupported compressed container or transfer shape.
Sourcepub const fn geometry_mismatch(reason: &'static str) -> Self
pub const fn geometry_mismatch(reason: &'static str) -> Self
Reject inconsistent dimensions, ranges, or component geometry.
Sourcepub const fn resource_limit(reason: &'static str) -> Self
pub const fn resource_limit(reason: &'static str) -> Self
Reject a request outside a bounded backend resource or address limit.
Sourcepub const fn context_mismatch(reason: &'static str) -> Self
pub const fn context_mismatch(reason: &'static str) -> Self
Reject a request bound to a different device, context, or session.
Sourcepub const fn contract_violation(reason: &'static str) -> Self
pub const fn contract_violation(reason: &'static str) -> Self
Reject checked internal ownership or execution state.
Sourcepub const fn kind(self) -> CapabilityRejectionKind
pub const fn kind(self) -> CapabilityRejectionKind
Typed rejection category.
Trait Implementations§
Source§impl Clone for CapabilityRejection
impl Clone for CapabilityRejection
Source§fn clone(&self) -> CapabilityRejection
fn clone(&self) -> CapabilityRejection
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 moreimpl Copy for CapabilityRejection
Source§impl Debug for CapabilityRejection
impl Debug for CapabilityRejection
Source§impl Display for CapabilityRejection
impl Display for CapabilityRejection
impl Eq for CapabilityRejection
Source§impl Hash for CapabilityRejection
impl Hash for CapabilityRejection
Source§impl PartialEq for CapabilityRejection
impl PartialEq for CapabilityRejection
impl StructuralPartialEq for CapabilityRejection
Auto Trait Implementations§
impl Freeze for CapabilityRejection
impl RefUnwindSafe for CapabilityRejection
impl Send for CapabilityRejection
impl Sync for CapabilityRejection
impl Unpin for CapabilityRejection
impl UnsafeUnpin for CapabilityRejection
impl UnwindSafe for CapabilityRejection
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