pub struct TimeoutConfig { /* private fields */ }Expand description
Configuration for TimeoutPlugin.
Implementations§
Source§impl TimeoutConfig
Fluent builder helpers for TimeoutConfig.
impl TimeoutConfig
Fluent builder helpers for TimeoutConfig.
Sourcepub fn with_default_timeout_ms(self, timeout_ms: u64) -> Self
pub fn with_default_timeout_ms(self, timeout_ms: u64) -> Self
Sourcepub fn with_prefix_timeout<P>(self, prefix: P, timeout_ms: u64) -> Self
pub fn with_prefix_timeout<P>(self, prefix: P, timeout_ms: u64) -> Self
Sourcepub fn with_honor_client_header(self, enabled: bool) -> Self
pub fn with_honor_client_header(self, enabled: bool) -> Self
Sourcepub fn with_expose_remaining_header(self, enabled: bool) -> Self
pub fn with_expose_remaining_header(self, enabled: bool) -> Self
Source§impl TimeoutConfig
impl TimeoutConfig
pub fn get_default_timeout_ms(&self) -> u64
pub fn get_mut_default_timeout_ms(&mut self) -> &mut u64
pub fn set_default_timeout_ms(&mut self, val: u64) -> &mut Self
pub fn get_prefix_timeouts(&self) -> &Vec<PrefixTimeout>
pub fn get_mut_prefix_timeouts(&mut self) -> &mut Vec<PrefixTimeout>
pub fn set_prefix_timeouts(&mut self, val: Vec<PrefixTimeout>) -> &mut Self
pub fn get_honor_client_header(&self) -> bool
pub fn get_mut_honor_client_header(&mut self) -> &mut bool
pub fn set_honor_client_header(&mut self, val: bool) -> &mut Self
pub fn get_client_header_name(&self) -> &String
pub fn get_mut_client_header_name(&mut self) -> &mut String
pub fn set_client_header_name(&mut self, val: String) -> &mut Self
pub fn get_expose_remaining_header(&self) -> bool
pub fn get_mut_expose_remaining_header(&mut self) -> &mut bool
pub fn set_expose_remaining_header(&mut self, val: bool) -> &mut Self
pub fn get_timeout_status(&self) -> HttpStatus
pub fn get_mut_timeout_status(&mut self) -> &mut HttpStatus
pub fn set_timeout_status(&mut self, val: HttpStatus) -> &mut Self
pub fn get_timeout_content_type(&self) -> &String
pub fn get_mut_timeout_content_type(&mut self) -> &mut String
pub fn set_timeout_content_type(&mut self, val: String) -> &mut Self
pub fn get_timeout_body(&self) -> &Vec<u8> ⓘ
pub fn get_mut_timeout_body(&mut self) -> &mut Vec<u8> ⓘ
pub fn set_timeout_body(&mut self, val: Vec<u8>) -> &mut Self
Trait Implementations§
Source§impl Clone for TimeoutConfig
impl Clone for TimeoutConfig
Source§impl Debug for TimeoutConfig
impl Debug for TimeoutConfig
Source§impl Default for TimeoutConfig
Default construction for TimeoutConfig.
impl Default for TimeoutConfig
Default construction for TimeoutConfig.
Source§fn default() -> Self
fn default() -> Self
Constructs a TimeoutConfig with a 30_000 ms default budget and 504 responses.
§Returns
Self- Default configuration.
impl Eq for TimeoutConfig
Source§impl PartialEq for TimeoutConfig
impl PartialEq for TimeoutConfig
impl StructuralPartialEq for TimeoutConfig
Auto Trait Implementations§
impl Forget for TimeoutConfig
impl Freeze for TimeoutConfig
impl Move for TimeoutConfig
impl RefUnwindSafe for TimeoutConfig
impl Send for TimeoutConfigwhere
RawVecInner: Send,
impl Sync for TimeoutConfigwhere
RawVecInner: Sync,
impl Unpin for TimeoutConfig
impl UnsafeUnpin for TimeoutConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PrefixTimeout>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for TimeoutConfigwhere
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.