pub enum InterfacePriority {
None,
Priority(u16),
}Expand description
The priority of an interface, which determines the order in which interfaces are used for routing fallback logic.
Variants§
None
The interface will not be used for fallback routing if no other interface is available This is useful for interfaces which cannot communicate with the outside world or are not capable of redirecting large amounts of data
Priority(u16)
The interface will be used for fallback routing if no other interface is available, depending on the defined priority A higher number means a higher priority
Trait Implementations§
Source§impl Clone for InterfacePriority
impl Clone for InterfacePriority
Source§fn clone(&self) -> InterfacePriority
fn clone(&self) -> InterfacePriority
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 InterfacePriority
Source§impl DatexProxyTypes for InterfacePriority
impl DatexProxyTypes for InterfacePriority
fn datex_type(cache: &mut SharedReferencesCache) -> Type
impl DatexValueProxy for InterfacePriority
Source§impl DatexValueProxyDeserialize for InterfacePriority
impl DatexValueProxyDeserialize for InterfacePriority
fn try_from_value(value: Value) -> Result<Self, TryFromDatexValueError>
fn try_from_map_property( value: Result<Value, KeyNotFoundError>, ) -> Result<Self, TryFromDatexValueError>
Source§impl DatexValueProxySerialize for InterfacePriority
impl DatexValueProxySerialize for InterfacePriority
fn try_to_value(self) -> Result<Value, TryToDatexValueError>
Source§impl Debug for InterfacePriority
impl Debug for InterfacePriority
Source§impl Default for InterfacePriority
impl Default for InterfacePriority
Source§impl<'de> Deserialize<'de> for InterfacePriority
impl<'de> Deserialize<'de> for InterfacePriority
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 InterfacePriority
Source§impl From<InterfacePriority> for Value
impl From<InterfacePriority> for Value
Source§fn from(value: InterfacePriority) -> Self
fn from(value: InterfacePriority) -> Self
Converts to this type from the input type.
Source§impl Ord for InterfacePriority
impl Ord for InterfacePriority
Source§fn cmp(&self, other: &InterfacePriority) -> Ordering
fn cmp(&self, other: &InterfacePriority) -> Ordering
1.21.0 (const: unstable) · 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 InterfacePriority
impl PartialEq for InterfacePriority
Source§fn eq(&self, other: &InterfacePriority) -> bool
fn eq(&self, other: &InterfacePriority) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for InterfacePriority
impl PartialOrd for InterfacePriority
Source§impl Serialize for InterfacePriority
impl Serialize for InterfacePriority
impl StructuralPartialEq for InterfacePriority
Source§impl TryFrom<Value> for InterfacePriority
impl TryFrom<Value> for InterfacePriority
Source§impl TryFrom<ValueContainer> for InterfacePriority
impl TryFrom<ValueContainer> for InterfacePriority
Source§type Error = TryFromDatexValueError
type Error = TryFromDatexValueError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for InterfacePriority
impl RefUnwindSafe for InterfacePriority
impl Send for InterfacePriority
impl Sync for InterfacePriority
impl Unpin for InterfacePriority
impl UnsafeUnpin for InterfacePriority
impl UnwindSafe for InterfacePriority
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DatexValueContainerProxy for Twhere
T: DatexValueProxy,
Source§impl<T> DatexValueContainerProxyDeserialize for Twhere
T: DatexValueProxyDeserialize,
impl<T> DatexValueContainerProxyDeserialize for Twhere
T: DatexValueProxyDeserialize,
fn try_from_value_container( value: ValueContainer, ) -> Result<T, TryFromDatexValueError>
fn try_from_map_property( value: Result<ValueContainer, KeyNotFoundError>, ) -> Result<T, TryFromDatexValueError>
Source§fn try_from_bytes(
dxb: Vec<u8>,
runtime: &Runtime,
) -> Result<Self, DeserializationError>
fn try_from_bytes( dxb: Vec<u8>, runtime: &Runtime, ) -> Result<Self, DeserializationError>
Deserialize a value of type T from a byte slice containing DXB data
Source§impl<T> DatexValueContainerProxyInfallibleSerialize for Twhere
T: DatexValueProxyInfallibleSerialize,
impl<T> DatexValueContainerProxyInfallibleSerialize for Twhere
T: DatexValueProxyInfallibleSerialize,
fn to_value_container(self) -> ValueContainer
Source§impl<T> DatexValueContainerProxySerialize for Twhere
T: DatexValueProxySerialize,
impl<T> DatexValueContainerProxySerialize for Twhere
T: DatexValueProxySerialize,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.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 moreSource§impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
Source§fn is_subset_of(&self, other: &U) -> bool
fn is_subset_of(&self, other: &U) -> bool
Returns whether self is a subset of type