pub enum Binding {
Zenoh1_10_1,
Zenoh1_10_2,
Zm1_10_2R1,
}Expand description
The zenoh a near router runs (v2 §2.4): it names the router’s link
protocols, and the defaults a configuration that omits a transport key
runs with (v2 §2.19). A link.v1 policy reads as zenoh-1.10.1.
Variants§
Zenoh1_10_1
Stock zenoh 1.10.1.
Zenoh1_10_2
Stock zenoh 1.10.2 (#1165): 1.10.1’s link protocols and defaults.
Zm1_10_2R1
zm-1.10.2-r1, the fork zenoh-modem builds on, and each later
release of the fork on zenoh 1.10.2, zm-1.10.2-r<n>, that changes
none of what a plan reads (v2 §2.4).
Implementations§
Source§impl Binding
impl Binding
Sourcepub const NAMES: [&'static str; 3]
pub const NAMES: [&'static str; 3]
Every binding’s name, in Binding::ALL’s order: the one list a
refusal offers (UnknownBinding, and Deserialize’s).
Sourcepub fn parse(s: &str) -> Option<Binding>
pub fn parse(s: &str) -> Option<Binding>
The binding a policy’s binding names, if any: a binding’s name, or
zm-1.10.2-r<n>, n a decimal from 1 with no leading zero, which
names zm-1.10.2-r1’s binding (v2 §2.4).
Trait Implementations§
impl Copy for Binding
Source§impl<'de> Deserialize<'de> for Binding
A binding by its name in a policy, for a tool’s own configuration (a
policy’s binding is read by parse, with its findings): any other
string is refused with the names it could have been.
impl<'de> Deserialize<'de> for Binding
A binding by its name in a policy, for a tool’s own configuration (a
policy’s binding is read by parse, with its findings): any other
string is refused with the names it could have been.
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
impl Eq for Binding
Source§impl FromStr for Binding
A binding by its name in a policy, for a tool’s flag (--binding): any
other string is refused with the names it could have been.
impl FromStr for Binding
A binding by its name in a policy, for a tool’s flag (--binding): any
other string is refused with the names it could have been.
impl StructuralPartialEq for Binding
Auto Trait Implementations§
impl Forget for Binding
impl Freeze for Binding
impl Move for Binding
impl RefUnwindSafe for Binding
impl Send for Binding
impl Sync for Binding
impl Unpin for Binding
impl UnsafeUnpin for Binding
impl UnwindSafe for Binding
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<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