Struct nydus_api::http::HttpRoutes
source · [−]Expand description
Struct to route HTTP requests to corresponding registered endpoint handlers.
Fields
routes: HashMap<String, Box<dyn EndpointHandler + Sync + Send>>routes is a hash table mapping endpoint URIs to their endpoint handlers.
Auto Trait Implementations
impl !RefUnwindSafe for HttpRoutes
impl Send for HttpRoutes
impl Sync for HttpRoutes
impl Unpin for HttpRoutes
impl !UnwindSafe for HttpRoutes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more