Struct minority_game_server::webserver::WebServer [−][src]
Fields
server: CustomServer<Game>
templates: Arc<Tera>
Implementations
Trait Implementations
fn handle_connection<'life0, 'life1, 'async_trait, S>(
&'life0 self,
connection: S,
peer: &'life1 Peer
) -> Pin<Box<dyn Future<Output = Result<(), S>> + Send + 'async_trait>> where
S: 'async_trait + AsyncRead + AsyncWrite + Unpin + Send + 'static,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn handle_connection<'life0, 'life1, 'async_trait, S>(
&'life0 self,
connection: S,
peer: &'life1 Peer
) -> Pin<Box<dyn Future<Output = Result<(), S>> + Send + 'async_trait>> where
S: 'async_trait + AsyncRead + AsyncWrite + Unpin + Send + 'static,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Handle an incoming connection
for peer
. Return Err(connection)
to
have BonsaiDb handle the connection internally. Read more
Auto Trait Implementations
impl !RefUnwindSafe for WebServer
impl !UnwindSafe for WebServer
Blanket Implementations
Mutably borrows from an owned value. Read more
type ApplicationProtocols = StandardTcpProtocols
type ApplicationProtocols = StandardTcpProtocols
The application layer protocols that this service supports.
pub fn available_protocols(&self) -> &[<T as TcpService>::ApplicationProtocols]
pub fn available_protocols(&self) -> &[<T as TcpService>::ApplicationProtocols]
Returns all available protocols for this service. The first will be the default used if a connection is made without negotiating the application protocol. Read more
pub fn handle_connection<'life0, 'life1, 'async_trait, S>(
&'life0 self,
connection: S,
peer: &'life1 Peer<<T as TcpService>::ApplicationProtocols>
) -> Pin<Box<dyn Future<Output = Result<(), S>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
S: 'async_trait + 'static + AsyncRead + AsyncWrite + Unpin + Send,
T: 'async_trait,
pub fn handle_connection<'life0, 'life1, 'async_trait, S>(
&'life0 self,
connection: S,
peer: &'life1 Peer<<T as TcpService>::ApplicationProtocols>
) -> Pin<Box<dyn Future<Output = Result<(), S>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
S: 'async_trait + 'static + AsyncRead + AsyncWrite + Unpin + Send,
T: 'async_trait,
Handle an incoming connection
for peer
. Return Err(connection)
to
have BonsaiDb handle the connection internally. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more