pub struct UsageContext {
pub required_stability: StabilityLevel,
pub maxexecution_time: Option<Duration>,
pub requires_thread_safety: bool,
pub max_memory_usage: Option<usize>,
pub required_precision: Option<PrecisionGuarantee>,
}Expand description
Context for API usage validation
Fields§
§required_stability: StabilityLevelRequired stability level
maxexecution_time: Option<Duration>Maximum acceptable execution time
requires_thread_safety: boolWhether thread safety is required
max_memory_usage: Option<usize>Maximum acceptable memory usage
required_precision: Option<PrecisionGuarantee>Required precision level
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UsageContext
impl RefUnwindSafe for UsageContext
impl Send for UsageContext
impl Sync for UsageContext
impl Unpin for UsageContext
impl UnwindSafe for UsageContext
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more