Struct aggligator_util::transport::AcceptorBuilder
source · pub struct AcceptorBuilder { /* private fields */ }Expand description
Builds a customized Acceptor.
Implementations§
source§impl AcceptorBuilder
impl AcceptorBuilder
sourcepub fn set_task_cfg(
&mut self,
task_cfg: impl Fn(&mut Task<IoTxBox, IoRxBox, LinkTagBox>) + Send + Sync + 'static
)
pub fn set_task_cfg(
&mut self,
task_cfg: impl Fn(&mut Task<IoTxBox, IoRxBox, LinkTagBox>) + Send + Sync + 'static
)
Sets the function configuring the connection task of each incoming connection.
sourcepub fn set_no_transport_timeout(&mut self, no_transport_timeout: Duration)
pub fn set_no_transport_timeout(&mut self, no_transport_timeout: Duration)
Sets the timeout for waiting for a connection when no transports are currently present.
sourcepub fn wrap(&mut self, wrapper: impl AcceptingWrapper)
pub fn wrap(&mut self, wrapper: impl AcceptingWrapper)
Adds a connection wrapper to the wrapper stack.