Struct saphir::server::ListenerBuilder
source · pub struct ListenerBuilder { /* private fields */ }
Expand description
Implementations
sourceimpl ListenerBuilder
impl ListenerBuilder
sourcepub fn set_panic_handler<PanicHandler>(self, panic_handler: PanicHandler) -> Selfwhere
PanicHandler: Fn(Box<dyn Any + Send + 'static>) + Send + Sync + 'static,
pub fn set_panic_handler<PanicHandler>(self, panic_handler: PanicHandler) -> Selfwhere
PanicHandler: Fn(Box<dyn Any + Send + 'static>) + Send + Sync + 'static,
Sets de default panic handler
sourcepub fn set_request_timeout_ms(self, timeout: u64) -> Self
pub fn set_request_timeout_ms(self, timeout: u64) -> Self
Set the default timeout for request in milliseconds. 0 means no timeout.
sourcepub fn set_ssl_certificates(self, cert_path: &str, key_path: &str) -> Self
pub fn set_ssl_certificates(self, cert_path: &str, key_path: &str) -> Self
Set the listener ssl certificates files. The cert needs to be PEM encoded while the key can be either RSA or PKCS8
sourcepub fn build(self) -> ListenerConfig
pub fn build(self) -> ListenerConfig
Builds a new Listener Configuration
Auto Trait Implementations
impl RefUnwindSafe for ListenerBuilder
impl Send for ListenerBuilder
impl Sync for ListenerBuilder
impl Unpin for ListenerBuilder
impl UnwindSafe for ListenerBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more