pub struct BridgeConfig {
pub read_timeout: Duration,
pub preauth_timeout: Duration,
pub max_unauthenticated: usize,
pub allow_non_loopback: bool,
}Expand description
Bridge settings.
Fields§
§read_timeout: DurationTime allowed to receive a request head and body.
preauth_timeout: DurationTime allowed from accept to an authenticated request head (the
pre-auth deadline; shorter than read_timeout).
max_unauthenticated: usizeMost connections that have not authenticated yet, at once. A further
connection waits up to preauth_timeout for a slot, then is dropped,
so an anonymous flood cannot use up the connection cap meant for
authenticated cogs. Residual limit: a process on this host (the bridge
is loopback) that keeps this many connections open and renews them
every preauth_timeout still delays every cog by up to that long and
can starve it; the token cannot be checked before the head arrives.
allow_non_loopback: boolAllow binding a non-loopback address. Only for an instance-scoped listener whose address a container relay needs (the VM gateway); the token still applies.
Trait Implementations§
Source§impl Clone for BridgeConfig
impl Clone for BridgeConfig
Source§impl Debug for BridgeConfig
impl Debug for BridgeConfig
Auto Trait Implementations§
impl Freeze for BridgeConfig
impl RefUnwindSafe for BridgeConfig
impl Send for BridgeConfig
impl Sync for BridgeConfig
impl Unpin for BridgeConfig
impl UnsafeUnpin for BridgeConfig
impl UnwindSafe for BridgeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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