pub enum HostMismatchPolicy {
Warn,
Error,
Ignore,
}Expand description
Policy for handling host mismatches when comparing receipts from different machines.
Host mismatches are detected when:
- Different
osorarch - Significant difference in
cpu_count(> 2x) - Significant difference in
memory_bytes(> 2x) - Different
hostname_hash(if both present)
Variants§
Warn
Warn about host mismatch but continue with comparison (default).
Error
Treat host mismatch as an error (exit 1).
Ignore
Ignore host mismatches completely (suppress warnings).
Implementations§
Trait Implementations§
Source§impl Clone for HostMismatchPolicy
impl Clone for HostMismatchPolicy
Source§fn clone(&self) -> HostMismatchPolicy
fn clone(&self) -> HostMismatchPolicy
Returns a duplicate of the value. Read more
1.0.0 · 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 HostMismatchPolicy
impl Debug for HostMismatchPolicy
Source§impl Default for HostMismatchPolicy
impl Default for HostMismatchPolicy
Source§fn default() -> HostMismatchPolicy
fn default() -> HostMismatchPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HostMismatchPolicy
impl<'de> Deserialize<'de> for HostMismatchPolicy
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
Source§impl JsonSchema for HostMismatchPolicy
impl JsonSchema for HostMismatchPolicy
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for HostMismatchPolicy
impl PartialEq for HostMismatchPolicy
Source§impl Serialize for HostMismatchPolicy
impl Serialize for HostMismatchPolicy
impl Copy for HostMismatchPolicy
impl Eq for HostMismatchPolicy
impl StructuralPartialEq for HostMismatchPolicy
Auto Trait Implementations§
impl Freeze for HostMismatchPolicy
impl RefUnwindSafe for HostMismatchPolicy
impl Send for HostMismatchPolicy
impl Sync for HostMismatchPolicy
impl Unpin for HostMismatchPolicy
impl UnsafeUnpin for HostMismatchPolicy
impl UnwindSafe for HostMismatchPolicy
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