Struct fp_server::HTTPServer
source · pub struct HTTPServer { /* private fields */ }
Implementations§
source§impl HTTPServer
impl HTTPServer
pub fn new(address: &impl ToSocketAddrs) -> Result<Self, HTTPServerError>
pub fn run(&self)
pub fn set_handler( &mut self, method: HTTPMethod, handler: Option<Box<dyn HTTPRequestHandler>> )
Auto Trait Implementations§
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