pub struct Server<I: ReqInterceptor = DummyInterceptor> {
pub port: u16,
pub tls_param: Option<TlsParam>,
pub interceptor: Option<I>,
pub idle_timeout: Duration,
/* private fields */
}Expand description
Fields§
§port: u16§tls_param: Option<TlsParam>§interceptor: Option<I>§idle_timeout: DurationImplementations§
Source§impl<I> Server<I>
impl<I> Server<I>
Sourcepub fn with_interceptor<R>(self: Server<I>, interceptor: R) -> Server<R>
pub fn with_interceptor<R>(self: Server<I>, interceptor: R) -> Server<R>
Sourcepub fn with_tls_param(self, tls_param: Option<TlsParam>) -> Self
pub fn with_tls_param(self, tls_param: Option<TlsParam>) -> Self
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Auto Trait Implementations§
impl<I> Freeze for Server<I>where
I: Freeze,
impl<I = DummyInterceptor> !RefUnwindSafe for Server<I>
impl<I> Send for Server<I>
impl<I> Sync for Server<I>where
I: Sync,
impl<I> Unpin for Server<I>where
I: Unpin,
impl<I = DummyInterceptor> !UnwindSafe for Server<I>
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