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§type Item = Connection
type Item = Connection
Item dispatched to a worker service.
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§
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