Struct distant_net::manager::ManagerServer
source · pub struct ManagerServer { /* private fields */ }
Expand description
Represents a manager of multiple server connections.
Implementations§
Trait Implementations§
source§impl ServerHandler for ManagerServer
impl ServerHandler for ManagerServer
§type Request = ManagerRequest
type Request = ManagerRequest
Type of data received by the server
§type Response = ManagerResponse
type Response = ManagerResponse
Type of data sent back by the server
source§fn on_request<'life0, 'async_trait>(
&'life0 self,
ctx: RequestCtx<Self::Request, Self::Response>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_request<'life0, 'async_trait>( &'life0 self, ctx: RequestCtx<Self::Request, Self::Response> ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Invoked upon receiving a request from a client. The server should process this
request, which can be found in
ctx
, and send one or more replies in response.Auto Trait Implementations§
impl !RefUnwindSafe for ManagerServer
impl Send for ManagerServer
impl Sync for ManagerServer
impl Unpin for ManagerServer
impl !UnwindSafe for ManagerServer
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