pub struct ServerTunnelOptions {
pub need_codec: bool,
pub is_datagram: bool,
pub keep_alive: bool,
pub namespace: Option<u64>,
pub force_namespace: bool,
}Expand description
How a local-server tunnel forwards: the codec, the transport, and whether its sockets keep alive.
Grouped rather than passed as three adjacent bools, which is a
transposition waiting to happen at a call site — and named fields make the
call sites say which is which.
Fields§
§need_codec: bool§is_datagram: bool§keep_alive: bool§namespace: Option<u64>§force_namespace: boolTrait Implementations§
Source§impl Clone for ServerTunnelOptions
impl Clone for ServerTunnelOptions
impl Copy for ServerTunnelOptions
Auto Trait Implementations§
impl Freeze for ServerTunnelOptions
impl RefUnwindSafe for ServerTunnelOptions
impl Send for ServerTunnelOptions
impl Sync for ServerTunnelOptions
impl Unpin for ServerTunnelOptions
impl UnsafeUnpin for ServerTunnelOptions
impl UnwindSafe for ServerTunnelOptions
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
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> ⓘ
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