Skip to main content

ServerFlowConfiguration

Struct ServerFlowConfiguration 

Source
pub struct ServerFlowConfiguration<T: IdentityType + Clone, AE: AsyncExecutor> { /* private fields */ }
Expand description

Configuration for a single server flow manager.

Implementations§

Source§

impl<T: IdentityType + Clone + 'static, AE: AsyncExecutor + 'static> ServerFlowConfiguration<T, AE>

Source

pub fn new(config: FlowConfig, socket: Socket) -> Self

Create a configuration with a pre-built socket.

Source

pub fn with_address(config: FlowConfig, address: SocketAddr) -> Self

Create a configuration that will bind a socket to the given address.

Source

pub fn with_reader_count(self, count: usize) -> Self

Set the number of SO_REUSEPORT reader sockets (Linux only). The kernel distributes incoming datagrams across all sockets by 4-tuple hash, enabling N concurrent recv_from drain tasks with no per-packet locking. Has no effect (silently clamped to 1) on non-Linux platforms.

Source

pub fn with_decoy_factory(self, factory: DecoyFactory<T, AE>) -> Self

Override the decoy provider factory for this flow. When not set, the listener’s default factory (random selection) is used.

Source

pub fn with_decoy<DP: DecoyCommunicationMode<T, AE> + 'static>(self) -> Self

Override the decoy provider for this flow using a concrete type.

Source

pub fn with_probe_factory(self, factory: ProbeFactory<AE>) -> Self

Override the active probe handler factory for this flow.

Source

pub fn with_probe<PM: ActiveProbeHandler<AE> + Default + 'static>(self) -> Self

Override the active probe handler type for this flow.

Auto Trait Implementations§

§

impl<T, AE> !Freeze for ServerFlowConfiguration<T, AE>

§

impl<T, AE> !RefUnwindSafe for ServerFlowConfiguration<T, AE>

§

impl<T, AE> !UnwindSafe for ServerFlowConfiguration<T, AE>

§

impl<T, AE> Send for ServerFlowConfiguration<T, AE>

§

impl<T, AE> Sync for ServerFlowConfiguration<T, AE>

§

impl<T, AE> Unpin for ServerFlowConfiguration<T, AE>

§

impl<T, AE> UnsafeUnpin for ServerFlowConfiguration<T, AE>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V