pub struct Transport {
pub lease_ms: u64,
pub keep_alive: u64,
pub wait_before_close_ms: u64,
pub sequence: Sequence,
pub batch_bytes: u64,
pub open_timeout_ms: u64,
pub accept_timeout_ms: u64,
pub interests_timeout_ms: u64,
}Expand description
A near router’s transport, [transport] (v2 §2.16): zenoh 1.10.1 reads
it once per router, for every link. Every key resolved: an optional
one the policy omits is at its default.
Fields§
§lease_ms: u64§keep_alive: u64§wait_before_close_ms: u64§sequence: Sequence§batch_bytes: u64§open_timeout_ms: u64§accept_timeout_ms: u64§interests_timeout_ms: u64Implementations§
Source§impl Transport
impl Transport
Sourcepub fn value(&self, key: TransportKey) -> Value
pub fn value(&self, key: TransportKey) -> Value
The value a generator writes at key’s zenoh key (v2 §2.18), in
zenoh’s units: wait_before_close in µs, the rest as the policy
states them.
Sourcepub fn keep_alive_interval_ms(&self) -> u64
pub fn keep_alive_interval_ms(&self) -> u64
The keep-alive interval, lease_ms / keep_alive, in whole ms,
rounded down.
Sourcepub fn keep_alive_interval_words(&self) -> String
pub fn keep_alive_interval_words(&self) -> String
The keep-alive interval in words: "60000 ms", or "about 666 ms"
where the lease is no multiple of keep_alive.
Trait Implementations§
impl Copy for Transport
impl Eq for Transport
impl StructuralPartialEq for Transport
Auto Trait Implementations§
impl Forget for Transport
impl Freeze for Transport
impl Move for Transport
impl RefUnwindSafe for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl UnsafeUnpin for Transport
impl UnwindSafe for Transport
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
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> ⓘ
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 more