pub struct HttpServer<T: Executor> { /* private fields */ }
Implementations§
Source§impl<T: Executor> HttpServer<T>
impl<T: Executor> HttpServer<T>
pub fn new(max_client_timeout_ms: u64, executor: T) -> Self
pub fn add_endpoint<F>(&mut self, path: &str, handler: F)
pub fn init_listener<SA: ToSocketAddrs>( &mut self, socket_address: SA, ) -> Result<TcpListener, Error>
pub fn start<SA: ToSocketAddrs>( &mut self, socket_address: SA, ) -> Result<bool, Error>
Auto Trait Implementations§
impl<T> Freeze for HttpServer<T>where
T: Freeze,
impl<T> RefUnwindSafe for HttpServer<T>where
T: RefUnwindSafe,
impl<T> Send for HttpServer<T>where
T: Send,
impl<T> Sync for HttpServer<T>where
T: Sync,
impl<T> Unpin for HttpServer<T>where
T: Unpin,
impl<T> UnwindSafe for HttpServer<T>where
T: UnwindSafe,
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