Enum veilid_core::SafetySelection
source · pub enum SafetySelection {
Unsafe(Sequencing),
Safe(SafetySpec),
}
Expand description
The choice of safety route to include in compiled routes
Variants§
Unsafe(Sequencing)
Don’t use a safety route, only specify the sequencing preference
Safe(SafetySpec)
Use a safety route and parameters specified by a SafetySpec
Implementations§
source§impl SafetySelection
impl SafetySelection
pub fn get_sequencing(&self) -> Sequencing
Trait Implementations§
source§impl Clone for SafetySelection
impl Clone for SafetySelection
source§fn clone(&self) -> SafetySelection
fn clone(&self) -> SafetySelection
Returns a copy 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 SafetySelection
impl Debug for SafetySelection
source§impl Default for SafetySelection
impl Default for SafetySelection
source§impl<'de> Deserialize<'de> for SafetySelection
impl<'de> Deserialize<'de> for SafetySelection
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 Hash for SafetySelection
impl Hash for SafetySelection
source§impl JsonSchema for SafetySelection
impl JsonSchema for SafetySelection
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl Ord for SafetySelection
impl Ord for SafetySelection
source§fn cmp(&self, other: &SafetySelection) -> Ordering
fn cmp(&self, other: &SafetySelection) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SafetySelection
impl PartialEq for SafetySelection
source§fn eq(&self, other: &SafetySelection) -> bool
fn eq(&self, other: &SafetySelection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SafetySelection
impl PartialOrd for SafetySelection
source§fn partial_cmp(&self, other: &SafetySelection) -> Option<Ordering>
fn partial_cmp(&self, other: &SafetySelection) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for SafetySelection
impl Serialize for SafetySelection
impl Copy for SafetySelection
impl Eq for SafetySelection
impl StructuralPartialEq for SafetySelection
Auto Trait Implementations§
impl Freeze for SafetySelection
impl RefUnwindSafe for SafetySelection
impl Send for SafetySelection
impl Sync for SafetySelection
impl Unpin for SafetySelection
impl UnwindSafe for SafetySelection
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> CmpAssign for Twhere
T: Ord,
impl<T> CmpAssign for Twhere
T: Ord,
fn min_assign(&mut self, other: T)
fn max_assign(&mut self, other: T)
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> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.