pub struct Gateway {
pub gateway_name: Arc<str>,
pub http_routes: HashMap<String, HttpRoute>,
pub http_plugins: Vec<BoxLayer>,
pub http_fallback: ArcHyperService,
pub http_route_reloader: Reloader<HttpRouterService>,
pub ext: Extensions,
}Fields§
§gateway_name: Arc<str>§http_routes: HashMap<String, HttpRoute>§http_plugins: Vec<BoxLayer>§http_fallback: ArcHyperService§http_route_reloader: Reloader<HttpRouterService>§ext: ExtensionsImplementations§
Source§impl Gateway
impl Gateway
Sourcepub fn builder(gateway_name: impl Into<Arc<str>>) -> GatewayBuilder
pub fn builder(gateway_name: impl Into<Arc<str>>) -> GatewayBuilder
Create a new gateway layer.
§Arguments
gateway_name- The gateway name, this may be used by plugins.
pub fn as_service(&self) -> ArcHyperService
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Gateway
impl !RefUnwindSafe for Gateway
impl Send for Gateway
impl Sync for Gateway
impl Unpin for Gateway
impl !UnwindSafe for Gateway
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