pub struct FacePolicy {
pub profile: Profile,
pub system: String,
pub services: Vec<String>,
pub faces: BTreeMap<String, Face>,
pub binding: Binding,
pub binding_name: String,
pub transport: Option<Transport>,
pub catalog: Option<String>,
}Expand description
A router’s face policy (§2.1; v2 §2.1).
Fields§
§profile: ProfileThe text it is read by.
system: String§services: Vec<String>The listed services, on system.
faces: BTreeMap<String, Face>The faces, by name.
binding: BindingThe zenoh the near router runs (v2 §2.4); a link.v1 policy’s is
zenoh-1.10.1.
binding_name: StringThe binding’s name as the policy spells it (#1204): binding reads
zm-1.10.2-r2 as zm-1.10.2-r1’s binding (v2 §2.4), and what a plan
writes for a reader names the release the policy names.
transport: Option<Transport>The near router’s transport (v2 §2.16): a link.v2 policy’s, None
for a link.v1 one.
catalog: Option<String>The catalog’s id the far side decodes with (v2 §2.1), when a link.v2 policy names one.
Implementations§
Source§impl FacePolicy
impl FacePolicy
Sourcepub fn devices(&self) -> impl Iterator<Item = (&str, &str)>
pub fn devices(&self) -> impl Iterator<Item = (&str, &str)>
Every device a face of the policy attaches, by address, with its face’s name (v2 §2.5), in the faces’ order and each face’s.
Sourcepub fn device_face(&self, address: &str) -> Option<&str>
pub fn device_face(&self, address: &str) -> Option<&str>
The face that attaches the device at address, when one does. A
device sits on one face only (device_listed, v2 §2.1): a policy
the linter accepted never lists it twice.
Source§impl FacePolicy
impl FacePolicy
Trait Implementations§
Source§impl Clone for FacePolicy
impl Clone for FacePolicy
Source§impl Debug for FacePolicy
impl Debug for FacePolicy
impl Eq for FacePolicy
Source§impl PartialEq for FacePolicy
impl PartialEq for FacePolicy
impl StructuralPartialEq for FacePolicy
Auto Trait Implementations§
impl Forget for FacePolicy
impl Freeze for FacePolicywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, Face> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Face)>>: Freeze,
impl Move for FacePolicy
impl RefUnwindSafe for FacePolicy
impl Send for FacePolicy
impl Sync for FacePolicy
impl Unpin for FacePolicy
impl UnsafeUnpin for FacePolicywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, Face> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Face)>>: UnsafeUnpin,
impl UnwindSafe for FacePolicy
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,
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