pub struct HTTPServer { /* private fields */ }Implementations§
Source§impl HTTPServer
impl HTTPServer
pub fn new<A>(address: A) -> Result<Self, HTTPServerError>where
A: ToSocketAddrs,
pub fn run(&self)
pub fn set_handler( &mut self, method: HTTPMethod, handler: Option<Box<dyn HTTPRequestHandler>>, )
Auto Trait Implementations§
impl Freeze for HTTPServer
impl !RefUnwindSafe for HTTPServer
impl Send for HTTPServer
impl Sync for HTTPServer
impl Unpin for HTTPServer
impl !UnwindSafe for HTTPServer
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