pub struct Server<S: DebugServer> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<S: DebugServer> RequestDispatcher for Server<S>
impl<S: DebugServer> RequestDispatcher for Server<S>
type Request = AppRequest<<S as DebugServer>::Request>
type Reply = <S as DebugServer>::Reply
fn dispatch( &self, role: &str, _http: &Version, method: &Method, uri: &Uri, _headers: &HeaderMap, body: &[u8], ) -> DispatchResult<Self::Request, Self::Reply>
fn process( &self, req: Self::Request, sender: ReplySender<Self::Reply>, _info: ClientInfo, )
fn reactor_control(&mut self, ctrl: ReactorControl) -> InitDestructor
fn process_html( &self, _req: Self::Request, sender: HtmlSender, _info: ClientInfo, )
fn http_debug(&self) -> bool
fn connection_error_reporter(&self, e: ConnectionError)
fn http_log( &self, role: &String, http: &Version, method: &Method, uri: &Uri, _headers: &HeaderMap, remote_addr: SocketAddr, )
Auto Trait Implementations§
impl<S> Freeze for Server<S>
impl<S> RefUnwindSafe for Server<S>where
S: RefUnwindSafe,
impl<S> Send for Server<S>
impl<S> Sync for Server<S>
impl<S> Unpin for Server<S>
impl<S> UnsafeUnpin for Server<S>
impl<S> UnwindSafe for Server<S>where
S: RefUnwindSafe,
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