pub enum IsolationLevel {
SharedKernel,
DedicatedHost,
AttestedResearchTier,
}Expand description
Provider isolation level (Unit 4 surfaces this on offers from
Q1; Unit 22 will populate it with the real research-tier
implementation). #[serde(default)] so v0 offers parse cleanly.
Variants§
Default LXC / shared-kernel container.
DedicatedHost
Whole-host dedicated to a single workload (no co-tenants).
AttestedResearchTier
Attested AMD SEV-SNP / Intel TDX research tier (year-2 R9).
Implementations§
Source§impl IsolationLevel
impl IsolationLevel
Sourcepub fn rank(self) -> u8
pub fn rank(self) -> u8
Numeric strength ordering used for “minimum acceptable tier”
comparisons. Higher = more isolated. NOT a Deserialize hint
(the wire format is the kebab-case slug); just a helper for
the consumer’s --isolation-level filter to decide whether
a provider’s offer meets the consumer’s threshold.
SharedKernel = 0, DedicatedHost = 1, AttestedResearchTier = 2.
meets(min) returns true iff self >= min in this ordering.
Sourcepub fn meets(self, min: IsolationLevel) -> bool
pub fn meets(self, min: IsolationLevel) -> bool
True iff this offer’s isolation tier is at least as strong
as min. Used by the consumer’s offer filter.
Trait Implementations§
Source§impl Clone for IsolationLevel
impl Clone for IsolationLevel
Source§fn clone(&self) -> IsolationLevel
fn clone(&self) -> IsolationLevel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IsolationLevel
impl Debug for IsolationLevel
Source§impl Default for IsolationLevel
impl Default for IsolationLevel
Source§fn default() -> IsolationLevel
fn default() -> IsolationLevel
Source§impl<'de> Deserialize<'de> for IsolationLevel
impl<'de> Deserialize<'de> for IsolationLevel
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>,
Source§impl PartialEq for IsolationLevel
impl PartialEq for IsolationLevel
Source§fn eq(&self, other: &IsolationLevel) -> bool
fn eq(&self, other: &IsolationLevel) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for IsolationLevel
impl Serialize for IsolationLevel
impl Copy for IsolationLevel
impl Eq for IsolationLevel
impl StructuralPartialEq for IsolationLevel
Auto Trait Implementations§
impl Freeze for IsolationLevel
impl RefUnwindSafe for IsolationLevel
impl Send for IsolationLevel
impl Sync for IsolationLevel
impl Unpin for IsolationLevel
impl UnsafeUnpin for IsolationLevel
impl UnwindSafe for IsolationLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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