#[non_exhaustive]pub struct DriverConfig {
pub connect_timeout: Duration,
pub close_linger: Duration,
pub tcp_port_range: Option<PortRange>,
pub shared_passive: Option<SocketAddr>,
}Expand description
The driver’s settings.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.connect_timeout: DurationHow long a connection attempt may take before it is reported failed.
close_linger: DurationHow long a close waits for the peer’s end of stream before giving up.
tcp_port_range: Option<PortRange>Listeners asked for on port 0 take a port of this range.
A passive ICE-TCP listening port shared with other peer connections: a Listen without
reuse_address is answered with this address and binds nothing; the application
accepts on the shared listener (sockets::accept_by_ufrag) and hands each connection
to the driver of the peer connection its first check names
(StreamDriver::adopt_shared). Every transport of the connection is answered with the
same address; the engine gives each connection to the transport its first check names.
Implementations§
Source§impl DriverConfig
impl DriverConfig
Sourcepub fn with_connect_timeout(self, connect_timeout: Duration) -> Self
pub fn with_connect_timeout(self, connect_timeout: Duration) -> Self
With a connect_timeout.
Sourcepub fn with_close_linger(self, close_linger: Duration) -> Self
pub fn with_close_linger(self, close_linger: Duration) -> Self
With a close_linger.
Sourcepub fn with_tcp_port_range(self, tcp_port_range: PortRange) -> Self
pub fn with_tcp_port_range(self, tcp_port_range: PortRange) -> Self
With a tcp_port_range.
With a shared_passive port.
Trait Implementations§
Source§impl Clone for DriverConfig
impl Clone for DriverConfig
impl Copy for DriverConfig
Source§impl Debug for DriverConfig
impl Debug for DriverConfig
Auto Trait Implementations§
impl Forget for DriverConfig
impl Freeze for DriverConfig
impl Move for DriverConfig
impl RefUnwindSafe for DriverConfig
impl Send for DriverConfig
impl Sync for DriverConfig
impl Unpin for DriverConfig
impl UnsafeUnpin for DriverConfig
impl UnwindSafe for DriverConfig
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.