pub struct GatewayConfig { /* private fields */ }Expand description
Top-level configuration for GatewayRuntime and GatewayPlugin.
Implementations§
Source§impl GatewayConfig
impl GatewayConfig
pub fn get_routes(&self) -> &Vec<GatewayRoute>
pub fn get_mut_routes(&mut self) -> &mut Vec<GatewayRoute>
pub fn set_routes(&mut self, val: Vec<GatewayRoute>) -> &mut Self
pub fn get_max_body_size(&self) -> usize
pub fn get_mut_max_body_size(&mut self) -> &mut usize
pub fn set_max_body_size(&mut self, val: usize) -> &mut Self
pub fn get_circuit_failure_threshold(&self) -> u32
pub fn get_mut_circuit_failure_threshold(&mut self) -> &mut u32
pub fn set_circuit_failure_threshold(&mut self, val: u32) -> &mut Self
pub fn get_circuit_reset_ms(&self) -> u64
pub fn get_mut_circuit_reset_ms(&mut self) -> &mut u64
pub fn set_circuit_reset_ms(&mut self, val: u64) -> &mut Self
Trait Implementations§
Source§impl Clone for GatewayConfig
impl Clone for GatewayConfig
Source§impl Debug for GatewayConfig
impl Debug for GatewayConfig
Source§impl Default for GatewayConfig
Default construction for GatewayConfig.
impl Default for GatewayConfig
Default construction for GatewayConfig.
Source§fn default() -> Self
fn default() -> Self
Constructs a default GatewayConfig value.
impl Eq for GatewayConfig
Source§impl PartialEq for GatewayConfig
impl PartialEq for GatewayConfig
impl StructuralPartialEq for GatewayConfig
Auto Trait Implementations§
impl Forget for GatewayConfig
impl Freeze for GatewayConfig
impl Move for GatewayConfig
impl RefUnwindSafe for GatewayConfig
impl Send for GatewayConfigwhere
RawVecInner: Send,
impl Sync for GatewayConfigwhere
RawVecInner: Sync,
impl Unpin for GatewayConfig
impl UnsafeUnpin for GatewayConfig
impl UnwindSafe for GatewayConfigwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.