[−][src]Struct saphir::server::ListenerBuilder
Methods
impl ListenerBuilder
[src]
pub fn new() -> Self
[src]
pub fn set_thread_pool_size(self, size: usize) -> Self
[src]
Set the thread_pool size for request handling, default is number of available CPU
pub fn set_request_timeout_ms(self, timeout: u64) -> Self
[src]
Set the default timeout for request in milliseconds. 0 means no timeout.
pub fn set_uri(self, uri: &str) -> Self
[src]
Set the listener uri (supported format is
pub fn set_ssl_certificates(self, cert_path: &str, key_path: &str) -> Self
[src]
Set the listener ssl certificates files. The cert needs to be PEM encoded while the key can be either RSA or PKCS8
pub fn build(self) -> ListenerConfig
[src]
Builds a new Listener Configuration
Auto Trait Implementations
impl Send for ListenerBuilder
impl Sync for ListenerBuilder
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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.