pub struct DualSession<Phase> { /* private fields */ }Expand description
Typestate witness for the role dual to Session.
Implementations§
Source§impl DualSession<PreStartup>
impl DualSession<PreStartup>
Source§impl DualSession<PreStartup>
impl DualSession<PreStartup>
Sourcepub const fn ssl_request(self) -> DualSession<SslDecision>
pub const fn ssl_request(self) -> DualSession<SslDecision>
Applies the dual ssl_request transition and enters SslDecision.
Sourcepub const fn gss_request(self) -> DualSession<GssDecision>
pub const fn gss_request(self) -> DualSession<GssDecision>
Applies the dual gss_request transition and enters GssDecision.
Sourcepub const fn cancel(self) -> DualSession<Terminated>
pub const fn cancel(self) -> DualSession<Terminated>
Applies the dual cancel transition and enters Terminated.
Sourcepub const fn startup(self) -> DualSession<Auth>
pub const fn startup(self) -> DualSession<Auth>
Applies the dual startup transition and enters Auth.
Source§impl DualSession<SslDecision>
impl DualSession<SslDecision>
Sourcepub const fn accept(self) -> DualSession<TlsHandshake>
pub const fn accept(self) -> DualSession<TlsHandshake>
Applies the dual accept transition and enters TlsHandshake.
Sourcepub const fn reject(self) -> DualSession<PreStartup>
pub const fn reject(self) -> DualSession<PreStartup>
Applies the dual reject transition and enters PreStartup.
Sourcepub const fn legacy_error(self) -> DualSession<Terminated>
pub const fn legacy_error(self) -> DualSession<Terminated>
Applies the dual legacy_error transition and enters Terminated.
Source§impl DualSession<GssDecision>
impl DualSession<GssDecision>
Sourcepub const fn accept(self) -> DualSession<GssHandshake>
pub const fn accept(self) -> DualSession<GssHandshake>
Applies the dual accept transition and enters GssHandshake.
Sourcepub const fn reject(self) -> DualSession<PreStartup>
pub const fn reject(self) -> DualSession<PreStartup>
Applies the dual reject transition and enters PreStartup.
Sourcepub const fn legacy_error(self) -> DualSession<Terminated>
pub const fn legacy_error(self) -> DualSession<Terminated>
Applies the dual legacy_error transition and enters Terminated.
Source§impl DualSession<TlsHandshake>
impl DualSession<TlsHandshake>
Sourcepub const fn complete(self) -> DualSession<PreStartup>
pub const fn complete(self) -> DualSession<PreStartup>
Applies the dual complete transition and enters PreStartup.
Source§impl DualSession<GssHandshake>
impl DualSession<GssHandshake>
Sourcepub const fn complete(self) -> DualSession<PreStartup>
pub const fn complete(self) -> DualSession<PreStartup>
Applies the dual complete transition and enters PreStartup.
Trait Implementations§
Source§impl<Phase: Clone> Clone for DualSession<Phase>
impl<Phase: Clone> Clone for DualSession<Phase>
Source§fn clone(&self) -> DualSession<Phase>
fn clone(&self) -> DualSession<Phase>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more