pub struct SessionCapabilities { /* private fields */ }Expand description
Fail-closed capabilities of one exact prepared model session.
Implementations§
Source§impl SessionCapabilities
impl SessionCapabilities
Sourcepub const fn new(
persistent_cache: bool,
output_observation: bool,
activation_inspection: bool,
) -> Self
pub const fn new( persistent_cache: bool, output_observation: bool, activation_inspection: bool, ) -> Self
Creates an exact fail-closed session mechanism report.
Sourcepub const fn persistent_cache(self) -> bool
pub const fn persistent_cache(self) -> bool
Returns whether persistent cache storage is available.
Sourcepub const fn output_observation(self) -> bool
pub const fn output_observation(self) -> bool
Returns whether completed outputs may be observed on the host.
Sourcepub const fn activation_inspection(self) -> bool
pub const fn activation_inspection(self) -> bool
Returns whether named activation inspection is available.
Sourcepub const fn with_persistent_cache(self, supported: bool) -> Self
pub const fn with_persistent_cache(self, supported: bool) -> Self
Returns a report with persistent cache storage configured.
Sourcepub const fn with_output_observation(self, supported: bool) -> Self
pub const fn with_output_observation(self, supported: bool) -> Self
Returns a report with output observation configured.
Sourcepub const fn with_activation_inspection(self, supported: bool) -> Self
pub const fn with_activation_inspection(self, supported: bool) -> Self
Returns a report with activation inspection configured.
Sourcepub fn validate(&self, available: &Self) -> Result<(), SessionCapabilityError>
pub fn validate(&self, available: &Self) -> Result<(), SessionCapabilityError>
Validates fail-closed requirements against an exact available report.
Trait Implementations§
Source§impl Clone for SessionCapabilities
impl Clone for SessionCapabilities
Source§fn clone(&self) -> SessionCapabilities
fn clone(&self) -> SessionCapabilities
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 SessionCapabilities
Source§impl Debug for SessionCapabilities
impl Debug for SessionCapabilities
Source§impl Default for SessionCapabilities
impl Default for SessionCapabilities
Source§fn default() -> SessionCapabilities
fn default() -> SessionCapabilities
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionCapabilities
impl<'de> Deserialize<'de> for SessionCapabilities
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 SessionCapabilities
Source§impl PartialEq for SessionCapabilities
impl PartialEq for SessionCapabilities
Source§impl Serialize for SessionCapabilities
impl Serialize for SessionCapabilities
impl StructuralPartialEq for SessionCapabilities
Auto Trait Implementations§
impl Freeze for SessionCapabilities
impl RefUnwindSafe for SessionCapabilities
impl Send for SessionCapabilities
impl Sync for SessionCapabilities
impl Unpin for SessionCapabilities
impl UnsafeUnpin for SessionCapabilities
impl UnwindSafe for SessionCapabilities
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