pub struct GatewayRuntime { /* private fields */ }Expand description
Compiled thread-safe reverse-proxy engine backing GatewayPlugin and GatewayHook.
Implementations§
Source§impl GatewayRuntime
Inherent implementation of GatewayRuntime.
impl GatewayRuntime
Inherent implementation of GatewayRuntime.
Sourcepub fn new(config: GatewayConfig) -> Self
pub fn new(config: GatewayConfig) -> Self
Compiles a GatewayConfig into an immutable longest-prefix-sorted GatewayRuntime.
§Arguments
GatewayConfig- Gateway routing and resilience configuration.
§Returns
Self- Ready reverse-proxy runtime.
Sourcepub fn with_interceptor<I>(self, interceptor: I) -> Selfwhere
I: GatewayInterceptor,
pub fn with_interceptor<I>(self, interceptor: I) -> Selfwhere
I: GatewayInterceptor,
Returns a GatewayRuntime with an additional pluggable GatewayInterceptor.
§Arguments
I- Interceptor implementation.
§Returns
Self- Updated runtime carrying the interceptor.
Sourcepub fn get_config(&self) -> &GatewayConfig
pub fn get_config(&self) -> &GatewayConfig
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for GatewayRuntime
impl !UnwindSafe for GatewayRuntime
impl Forget for GatewayRuntime
impl Freeze for GatewayRuntimewhere
*const u8 is !null: Freeze,
PhantomData<GatewayRoute>: Freeze,
*const ArcInner<[CompiledRoute]> is !null: Freeze,
PhantomData<ArcInner<[CompiledRoute]>>: Freeze,
*const ArcInner<[Arc<dyn GatewayInterceptor>]> is !null: Freeze,
PhantomData<ArcInner<[Arc<dyn GatewayInterceptor>]>>: Freeze,
impl Move for GatewayRuntime
impl Send for GatewayRuntime
impl Sync for GatewayRuntime
impl Unpin for GatewayRuntime
impl UnsafeUnpin for GatewayRuntimewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<GatewayRoute>: UnsafeUnpin,
*const ArcInner<[CompiledRoute]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[CompiledRoute]>>: UnsafeUnpin,
*const ArcInner<[Arc<dyn GatewayInterceptor>]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[Arc<dyn GatewayInterceptor>]>>: UnsafeUnpin,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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