pub struct DualProtocolAcceptor { /* private fields */ }
Expand description
Simultaneous HTTP and HTTPS Accept
or.
Implementations§
source§impl DualProtocolAcceptor
impl DualProtocolAcceptor
sourcepub fn new(config: RustlsConfig) -> Self
pub fn new(config: RustlsConfig) -> Self
Create a new DualProtocolAcceptor
.
sourcepub fn set_upgrade(&mut self, upgrade: bool)
pub fn set_upgrade(&mut self, upgrade: bool)
Set if HTTP connections should be automatically upgraded to HTTPS.
See UpgradeHttp
for more details.
Trait Implementations§
source§impl<Service: Clone> Accept<TcpStream, Service> for DualProtocolAcceptor
impl<Service: Clone> Accept<TcpStream, Service> for DualProtocolAcceptor
§type Service = DualProtocolService<Service>
type Service = DualProtocolService<Service>
Service produced by accept.
§type Future = DualProtocolAcceptorFuture<Service>
type Future = DualProtocolAcceptorFuture<Service>
Future return value.
source§impl Clone for DualProtocolAcceptor
impl Clone for DualProtocolAcceptor
source§fn clone(&self) -> DualProtocolAcceptor
fn clone(&self) -> DualProtocolAcceptor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DualProtocolAcceptor
impl !RefUnwindSafe for DualProtocolAcceptor
impl Send for DualProtocolAcceptor
impl Sync for DualProtocolAcceptor
impl Unpin for DualProtocolAcceptor
impl !UnwindSafe for DualProtocolAcceptor
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)