pub struct GurtServerBuilder { /* private fields */ }Implementations§
Source§impl GurtServerBuilder
impl GurtServerBuilder
pub fn new() -> Self
pub fn with_tls_certificates<P: Into<PathBuf>>( self, cert_path: P, key_path: P, ) -> Self
pub fn with_host<S: Into<String>>(self, host: S) -> Self
pub fn with_port(self, port: u16) -> Self
pub fn with_timeouts( self, handshake_timeout: Duration, request_timeout: Duration, connection_timeout: Duration, ) -> Self
pub fn build(self) -> Result<GurtServer>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GurtServerBuilder
impl RefUnwindSafe for GurtServerBuilder
impl Send for GurtServerBuilder
impl Sync for GurtServerBuilder
impl Unpin for GurtServerBuilder
impl UnsafeUnpin for GurtServerBuilder
impl UnwindSafe for GurtServerBuilder
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