pub struct StreamServer<Cfg> { /* private fields */ }Expand description
Worker configuration for network servers.
Created by ServerBuilder::run. Each worker
creates its application state and the services for all registered
listeners.
Trait Implementations§
Source§impl<Cfg> Clone for StreamServer<Cfg>where
Cfg: ServerAppConfig,
impl<Cfg> Clone for StreamServer<Cfg>where
Cfg: ServerAppConfig,
Source§fn clone(&self) -> StreamServer<Cfg>
fn clone(&self) -> StreamServer<Cfg>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Cfg> Debug for StreamServer<Cfg>
impl<Cfg> Debug for StreamServer<Cfg>
Source§impl<Cfg> ServerConfiguration for StreamServer<Cfg>where
Cfg: ServerAppConfig,
Worker service factory.
impl<Cfg> ServerConfiguration for StreamServer<Cfg>where
Cfg: ServerAppConfig,
Worker service factory.
Source§async fn create(
&self,
) -> Result<<StreamServer<Cfg> as ServerConfiguration>::Service, Error>
async fn create( &self, ) -> Result<<StreamServer<Cfg> as ServerConfiguration>::Service, Error>
Create service for handling connections
Source§fn local_items(&self) -> Option<Pin<Box<dyn Stream<Item = Connection>>>>
fn local_items(&self) -> Option<Pin<Box<dyn Stream<Item = Connection>>>>
Accept connections on the worker’s own listeners.
Source§type Item = Connection
type Item = Connection
Item dispatched to a worker service.
Source§fn incoming_cpu(&self, con: &Connection) -> Option<usize>
fn incoming_cpu(&self, con: &Connection) -> Option<usize>
Returns the index of the logical CPU that receives the network packets
of the item, if known. Read more
Auto Trait Implementations§
impl<Cfg> !RefUnwindSafe for StreamServer<Cfg>
impl<Cfg> !Sync for StreamServer<Cfg>
impl<Cfg> !UnwindSafe for StreamServer<Cfg>
impl<Cfg> Freeze for StreamServer<Cfg>
impl<Cfg> Send for StreamServer<Cfg>
impl<Cfg> Unpin for StreamServer<Cfg>
impl<Cfg> UnsafeUnpin for StreamServer<Cfg>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
Mutably borrows from an owned value. Read more