pub struct RouterService { /* private fields */ }Expand description
It defines the router service which is the main entry point for Hyper Server.
Implementations§
Source§impl RouterService
impl RouterService
Sourcepub fn new(handler: RequestHandler) -> Self
pub fn new(handler: RequestHandler) -> Self
Creates a new router service.
Sourcepub fn build(&self, remote_addr: Option<SocketAddr>) -> RequestService
pub fn build(&self, remote_addr: Option<SocketAddr>) -> RequestService
Build a new request service for an accepted connection.
Trait Implementations§
Source§impl Clone for RouterService
impl Clone for RouterService
Source§fn clone(&self) -> RouterService
fn clone(&self) -> RouterService
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 moreAuto Trait Implementations§
impl Freeze for RouterService
impl RefUnwindSafe for RouterService
impl Send for RouterService
impl Sync for RouterService
impl Unpin for RouterService
impl UnsafeUnpin for RouterService
impl UnwindSafe for RouterService
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