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
Source§type Request = ManagerRequest
type Request = ManagerRequest
Type of data received by the server
Source§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 !Freeze for ManagerServer
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