pub struct FarSide {
pub face: String,
pub reply_timeout_ms: u64,
pub arq: bool,
pub transport: Transport,
}Expand description
What a reader or a caller on the far side of one face of a link.v2 policy takes from the policy (v2 §2.20, §2.21; core §8.1, §8.5): how long a reply may take, whether the medium repairs a lost frame, and the transport its own session runs (v2 §2.16).
Fields§
§face: StringThe face’s name in the policy.
reply_timeout_ms: u64reply_timeout_ms: the deployment’s word to every caller across
the face (v2 §2.1).
arq: boolarq: whether the medium repairs a lost frame below zenoh.
transport: TransportThe router’s [transport], which both ends run (v2 §2.16).
Implementations§
Source§impl FarSide
impl FarSide
Sourcepub fn reply_timeout(&self) -> Duration
pub fn reply_timeout(&self) -> Duration
How long a caller across the face waits at least (core §8.1).
Sourcepub fn at_least(&self, timeout: Duration) -> Duration
pub fn at_least(&self, timeout: Duration) -> Duration
timeout, raised to the face’s reply timeout when it is shorter
(core §8.1: at least the face’s).
Sourcepub fn redeclares(&self) -> bool
pub fn redeclares(&self) -> bool
Whether a reader across the face declares a silent subscription again (core §8.5): where the medium repairs no lost frame. With ARQ, a frame arrives or the transport closes, and a transport that opens again declares everything anew.
Sourcepub fn session_keys(&self) -> Vec<(TransportKey, Value)>
pub fn session_keys(&self) -> Vec<(TransportKey, Value)>
The configuration a session across the face runs (v2 §2.16, §2.18):
each [transport] key at zenoh’s key, in zenoh’s units, as the far
end’s block writes it: a client of the near router is the gateway
client’s session.
Sourcepub fn silence(horizon: Duration) -> Duration
pub fn silence(horizon: Duration) -> Duration
The silence after which a subscription with horizon is declared
again: SILENT_HORIZONS of it (core §8.5).
Trait Implementations§
impl Eq for FarSide
impl StructuralPartialEq for FarSide
Auto Trait Implementations§
impl Forget for FarSide
impl Freeze for FarSide
impl Move for FarSide
impl RefUnwindSafe for FarSide
impl Send for FarSidewhere
RawVecInner: Send,
impl Sync for FarSidewhere
RawVecInner: Sync,
impl Unpin for FarSide
impl UnsafeUnpin for FarSide
impl UnwindSafe for FarSidewhere
RawVecInner: 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