[−][src]Struct kayrx::http::ServiceConfig
Http service configuration
Methods
impl ServiceConfig
[src]
pub fn new(
keep_alive: KeepAlive,
client_timeout: u64,
client_disconnect: u64,
secure: bool,
local_addr: Option<SocketAddr>
) -> ServiceConfig
[src]
keep_alive: KeepAlive,
client_timeout: u64,
client_disconnect: u64,
secure: bool,
local_addr: Option<SocketAddr>
) -> ServiceConfig
Create instance of ServiceConfig
pub fn secure(&self) -> bool
[src]
Returns true if connection is secure(https)
pub fn local_addr(&self) -> Option<SocketAddr>
[src]
Returns the local address that this server is bound to.
pub fn keep_alive(&self) -> Option<Duration>
[src]
Keep alive duration if configured.
pub fn keep_alive_enabled(&self) -> bool
[src]
Return state of connection keep-alive funcitonality
pub fn client_timer(&self) -> Option<Delay>
[src]
Client timeout for first request.
pub fn client_timer_expire(&self) -> Option<Instant>
[src]
Client timeout for first request.
pub fn client_disconnect_timer(&self) -> Option<Instant>
[src]
Client disconnect timer
pub fn keep_alive_timer(&self) -> Option<Delay>
[src]
Return keep-alive timer delay is configured.
pub fn keep_alive_expire(&self) -> Option<Instant>
[src]
Keep-alive expire time
Trait Implementations
impl Clone for ServiceConfig
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for ServiceConfig
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ServiceConfig
impl !Send for ServiceConfig
impl !Sync for ServiceConfig
impl Unpin for ServiceConfig
impl !UnwindSafe for ServiceConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,