pub struct EmulationBuilder { /* private fields */ }Expand description
Builder for creating an Emulation configuration.
Implementations§
Source§impl EmulationBuilder
impl EmulationBuilder
Sourcepub fn http1_options(self, opts: Http1Options) -> Self
Available on crate feature http1 only.
pub fn http1_options(self, opts: Http1Options) -> Self
http1 only.Sets the HTTP/1 options configuration.
Sourcepub fn http2_options(self, opts: Http2Options) -> Self
Available on crate feature http2 only.
pub fn http2_options(self, opts: Http2Options) -> Self
http2 only.Sets the HTTP/2 options configuration.
Sourcepub fn tls_options(self, opts: TlsOptions) -> Self
pub fn tls_options(self, opts: TlsOptions) -> Self
Sets the TLS options configuration.
Sourcepub fn orig_headers(self, src: OrigHeaderMap) -> Self
pub fn orig_headers(self, src: OrigHeaderMap) -> Self
Sets the original headers.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EmulationBuilder
impl RefUnwindSafe for EmulationBuilder
impl Send for EmulationBuilder
impl Sync for EmulationBuilder
impl Unpin for EmulationBuilder
impl UnsafeUnpin for EmulationBuilder
impl UnwindSafe for EmulationBuilder
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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