pub struct Face {Show 16 fields
pub far: String,
pub attach: Attach,
pub link_protocols: Vec<String>,
pub expose: Expose,
pub interval_s: Option<u64>,
pub max_outage_s: u64,
pub batch_bytes: u64,
pub link_bps: u64,
pub lease_ms: u64,
pub loss_ppm: Option<u64>,
pub arq: Option<bool>,
pub reply_timeout_ms: Option<u64>,
pub frames: Option<BTreeMap<String, FrameCadence>>,
pub events: Option<BTreeSet<String>>,
pub horizon_s: Option<u64>,
pub opens: Opens,
}Expand description
One constrained face of a router (§2.1).
Fields§
§far: StringThe far principal: a user name or a certificate CN (core §11.1).
attach: Attach§link_protocols: Vec<String>select.link_protocols, in the policy’s order.
expose: Expose§interval_s: Option<u64>Exactly when expose is Expose::Link.
max_outage_s: u64§batch_bytes: u64The face’s batch_bytes in a link.v1 policy; [transport]’s in a
link.v2 one (v2 §2.10).
link_bps: u64§lease_ms: u64The face’s lease_ms in a link.v1 policy, DEFAULT_LEASE_MS
when it gives none; [transport]’s in a link.v2 one.
loss_ppm: Option<u64>link.v2’s (v2 §2.1): the share of frames the medium loses, in parts
per million. None in a link.v1 policy, as the next two.
arq: Option<bool>link.v2’s: whether the medium repairs a lost frame below zenoh.
reply_timeout_ms: Option<u64>link.v2’s: how long a caller across the face waits for a reply, the deployment’s word to every caller.
frames: Option<BTreeMap<String, FrameCadence>>link.v2’s frames (v2 §2.7): the frame resources that cross the
face, by their name (§0, <iface>/stream/<template>), each at its
cadence. None when the face lists none: every exposed frame
resource crosses, as link.v1 §2.7 says.
events: Option<BTreeSet<String>>link.v2’s events (v2 §2.7): the event resources that cross the
face, by their name (§0, <iface>/events/<template>). None when
the face lists none: every exposed event crosses, as link.v1 §2.7
says.
horizon_s: Option<u64>link.v2’s horizon_s (v2 §2.12): the shortest horizon the face
affords a crossing heartbeat or frame resource.
opens: Openslink.v2’s opens (v2 §2.1, §2.5): which end opens the face’s links.
Opens::Far in a link.v1 policy, and where it states none.
Implementations§
Trait Implementations§
impl Eq for Face
impl StructuralPartialEq for Face
Auto Trait Implementations§
impl Forget for Face
impl Freeze for Facewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, FrameCadence> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, FrameCadence)>>: Freeze,
*const LeafNode<String, SetValZST> is !null: Freeze,
PhantomData<Box<(String, SetValZST)>>: Freeze,
impl Move for Face
impl RefUnwindSafe for Face
impl Send for Face
impl Sync for Face
impl Unpin for Face
impl UnsafeUnpin for Facewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, FrameCadence> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, FrameCadence)>>: UnsafeUnpin,
*const LeafNode<String, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,
impl UnwindSafe for Facewhere
RawVecInner: UnwindSafe,
BTreeMap<String, FrameCadence>: UnwindSafe,
BTreeMap<String, SetValZST>: UnwindSafe,
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