Struct vertx_rust::http::HttpServer
source · pub struct HttpServer<CM: 'static + ClusterManager + Send + Sync + RefUnwindSafe> {
pub port: u16,
/* private fields */
}
Fields§
§port: u16
Implementations§
source§impl<CM: 'static + ClusterManager + Send + Sync + RefUnwindSafe> HttpServer<CM>
impl<CM: 'static + ClusterManager + Send + Sync + RefUnwindSafe> HttpServer<CM>
pub fn get<OP>(&mut self, path: &str, op: OP) -> &mut Selfwhere OP: FnMut(Request, Arc<EventBus<CM>>) -> Result<Response<Body>, Error> + 'static + Send + Sync,
pub fn post<OP>(&mut self, path: &str, op: OP) -> &mut Selfwhere OP: FnMut(Request, Arc<EventBus<CM>>) -> Result<Response<Body>, Error> + 'static + Send + Sync,
pub fn put<OP>(&mut self, path: &str, op: OP) -> &mut Selfwhere OP: FnMut(Request, Arc<EventBus<CM>>) -> Result<Response<Body>, Error> + 'static + Send + Sync,
pub fn delete<OP>(&mut self, path: &str, op: OP) -> &mut Selfwhere OP: FnMut(Request, Arc<EventBus<CM>>) -> Result<Response<Body>, Error> + 'static + Send + Sync,
pub fn head<OP>(&mut self, path: &str, op: OP) -> &mut Selfwhere OP: FnMut(Request, Arc<EventBus<CM>>) -> Result<Response<Body>, Error> + 'static + Send + Sync,
pub fn patch<OP>(&mut self, path: &str, op: OP) -> &mut Selfwhere OP: FnMut(Request, Arc<EventBus<CM>>) -> Result<Response<Body>, Error> + 'static + Send + Sync,
pub fn options<OP>(&mut self, path: &str, op: OP) -> &mut Selfwhere OP: FnMut(Request, Arc<EventBus<CM>>) -> Result<Response<Body>, Error> + 'static + Send + Sync,
pub fn connect<OP>(&mut self, path: &str, op: OP) -> &mut Selfwhere OP: FnMut(Request, Arc<EventBus<CM>>) -> Result<Response<Body>, Error> + 'static + Send + Sync,
pub fn trace<OP>(&mut self, path: &str, op: OP) -> &mut Selfwhere OP: FnMut(Request, Arc<EventBus<CM>>) -> Result<Response<Body>, Error> + 'static + Send + Sync,
pub fn listen_with_default<OP>(&mut self, port: u16, default: OP)where OP: FnMut(Request, Arc<EventBus<CM>>) -> Result<Response<Body>, Error> + 'static + Send + Sync + Copy,
pub fn listen(&mut self, port: u16)
Auto Trait Implementations§
impl<CM> !RefUnwindSafe for HttpServer<CM>
impl<CM> Send for HttpServer<CM>
impl<CM> Sync for HttpServer<CM>
impl<CM> Unpin for HttpServer<CM>
impl<CM> !UnwindSafe for HttpServer<CM>
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