pub struct Session<Phase> { /* private fields */ }Expand description
Zero-sized typestate witness for this protocol role.
Implementations§
Source§impl Session<PreStartup>
impl Session<PreStartup>
Source§impl Session<PreStartup>
impl Session<PreStartup>
Sourcepub const fn ssl_request(self) -> Session<SslDecision>
pub const fn ssl_request(self) -> Session<SslDecision>
Applies ssl_request and enters SslDecision.
Sourcepub const fn gss_request(self) -> Session<GssDecision>
pub const fn gss_request(self) -> Session<GssDecision>
Applies gss_request and enters GssDecision.
Sourcepub const fn cancel(self) -> Session<Terminated>
pub const fn cancel(self) -> Session<Terminated>
Applies cancel and enters Terminated.
Source§impl Session<SslDecision>
impl Session<SslDecision>
Sourcepub const fn accept(self) -> Session<TlsHandshake>
pub const fn accept(self) -> Session<TlsHandshake>
Applies accept and enters TlsHandshake.
Sourcepub const fn reject(self) -> Session<PreStartup>
pub const fn reject(self) -> Session<PreStartup>
Applies reject and enters PreStartup.
Sourcepub const fn legacy_error(self) -> Session<Terminated>
pub const fn legacy_error(self) -> Session<Terminated>
Applies legacy_error and enters Terminated.
Source§impl Session<GssDecision>
impl Session<GssDecision>
Sourcepub const fn accept(self) -> Session<GssHandshake>
pub const fn accept(self) -> Session<GssHandshake>
Applies accept and enters GssHandshake.
Sourcepub const fn reject(self) -> Session<PreStartup>
pub const fn reject(self) -> Session<PreStartup>
Applies reject and enters PreStartup.
Sourcepub const fn legacy_error(self) -> Session<Terminated>
pub const fn legacy_error(self) -> Session<Terminated>
Applies legacy_error and enters Terminated.
Source§impl Session<TlsHandshake>
impl Session<TlsHandshake>
Sourcepub const fn complete(self) -> Session<PreStartup>
pub const fn complete(self) -> Session<PreStartup>
Applies complete and enters PreStartup.
Source§impl Session<GssHandshake>
impl Session<GssHandshake>
Sourcepub const fn complete(self) -> Session<PreStartup>
pub const fn complete(self) -> Session<PreStartup>
Applies complete and enters PreStartup.
Trait Implementations§
impl<Phase: Copy> Copy for Session<Phase>
impl<Phase: Eq> Eq for Session<Phase>
impl<Phase: PartialEq> StructuralPartialEq for Session<Phase>
Auto Trait Implementations§
impl<Phase> Freeze for Session<Phase>
impl<Phase> RefUnwindSafe for Session<Phase>where
Phase: RefUnwindSafe,
impl<Phase> Send for Session<Phase>where
Phase: Send,
impl<Phase> Sync for Session<Phase>where
Phase: Sync,
impl<Phase> Unpin for Session<Phase>where
Phase: Unpin,
impl<Phase> UnsafeUnpin for Session<Phase>
impl<Phase> UnwindSafe for Session<Phase>where
Phase: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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