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 Self
pub fn post<OP>(&mut self, path: &str, op: OP) -> &mut Self
pub fn put<OP>(&mut self, path: &str, op: OP) -> &mut Self
pub fn delete<OP>(&mut self, path: &str, op: OP) -> &mut Self
pub fn head<OP>(&mut self, path: &str, op: OP) -> &mut Self
pub fn patch<OP>(&mut self, path: &str, op: OP) -> &mut Self
pub fn options<OP>(&mut self, path: &str, op: OP) -> &mut Self
pub fn connect<OP>(&mut self, path: &str, op: OP) -> &mut Self
pub fn trace<OP>(&mut self, path: &str, op: OP) -> &mut Self
pub fn listen_with_default<OP>(&mut self, port: u16, default: OP)
pub fn listen(&mut self, port: u16)
Auto Trait Implementations§
impl<CM> !Freeze for HttpServer<CM>
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