pub struct LiaisonConfig {
pub peers: BTreeMap<String, LiaisonPeer>,
pub poll: Duration,
pub max_links: Limit,
pub plain_beyond_loopback: bool,
pub recheck: Duration,
}Expand description
What Liaison serves and to whom.
Fields§
§peers: BTreeMap<String, LiaisonPeer>The paired peers, by name.
poll: DurationHow often a waiting operation looks for a reply, and the outbound side for Cables.
max_links: LimitLinks served at once.
plain_beyond_loopback: boolWhether a ws:// listener or dial may go beyond loopback.
recheck: DurationHow often a running stream’s grant is asked about again.
Implementations§
Source§impl LiaisonConfig
impl LiaisonConfig
Sourcepub fn with_peer(self, peer: LiaisonPeer) -> Self
pub fn with_peer(self, peer: LiaisonPeer) -> Self
Adds a peer.
Sourcepub fn from_settings(settings: &LiaisonSettings) -> Result<Self, LiaisonError>
pub fn from_settings(settings: &LiaisonSettings) -> Result<Self, LiaisonError>
Reads [unex.liaison].
§Errors
A peer’s name, id, principal, addressee or url is not valid, or a duration is negative.
Trait Implementations§
Source§impl Clone for LiaisonConfig
impl Clone for LiaisonConfig
Source§impl Debug for LiaisonConfig
impl Debug for LiaisonConfig
Auto Trait Implementations§
impl Freeze for LiaisonConfig
impl RefUnwindSafe for LiaisonConfig
impl Send for LiaisonConfig
impl Sync for LiaisonConfig
impl Unpin for LiaisonConfig
impl UnsafeUnpin for LiaisonConfig
impl UnwindSafe for LiaisonConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.