pub struct ServerOptions { /* private fields */ }Implementations§
Source§impl ServerOptions
impl ServerOptions
Source§impl ServerOptions
impl ServerOptions
pub fn set_host(&mut self, val: String) -> &mut Self
pub fn set_port(&mut self, val: u16) -> &mut Self
pub fn set_tls_cert_path(&mut self, val: Option<String>) -> &mut Self
pub fn set_tls_key_path(&mut self, val: Option<String>) -> &mut Self
pub fn set_max_connections(&mut self, val: usize) -> &mut Self
Source§impl ServerOptions
impl ServerOptions
Source§impl ServerOptions
impl ServerOptions
pub fn new() -> ServerOptions
Trait Implementations§
Source§impl Debug for ServerOptions
impl Debug for ServerOptions
Auto Trait Implementations§
impl Freeze for ServerOptions
impl RefUnwindSafe for ServerOptions
impl Send for ServerOptions
impl Sync for ServerOptions
impl Unpin for ServerOptions
impl UnwindSafe for ServerOptions
Blanket Implementations§
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more