pub struct Session<Phase> { /* private fields */ }Expand description
Zero-sized typestate witness for this protocol role.
Implementations§
Source§impl Session<Startup>
impl Session<Startup>
Sourcepub const fn reject(self) -> Session<Terminated>
pub const fn reject(self) -> Session<Terminated>
Applies reject and enters Terminated.
Source§impl Session<Auth>
impl Session<Auth>
Sourcepub const fn cleartext(self) -> Session<PasswordResponse>
pub const fn cleartext(self) -> Session<PasswordResponse>
Applies cleartext and enters PasswordResponse.
Sourcepub const fn md5(self) -> Session<PasswordResponse>
pub const fn md5(self) -> Session<PasswordResponse>
Applies md5 and enters PasswordResponse.
Sourcepub const fn sasl(self) -> Session<SaslInitial>
pub const fn sasl(self) -> Session<SaslInitial>
Applies sasl and enters SaslInitial.
Sourcepub const fn gss(self) -> Session<TokenResponse>
pub const fn gss(self) -> Session<TokenResponse>
Applies gss and enters TokenResponse.
Sourcepub const fn sspi(self) -> Session<TokenResponse>
pub const fn sspi(self) -> Session<TokenResponse>
Applies sspi and enters TokenResponse.
Sourcepub const fn kerberos_v5(self) -> Session<TokenResponse>
pub const fn kerberos_v5(self) -> Session<TokenResponse>
Applies kerberos_v5 and enters TokenResponse.
Sourcepub const fn ok(self) -> Session<StartupReady>
pub const fn ok(self) -> Session<StartupReady>
Applies ok and enters StartupReady.
Sourcepub const fn error(self) -> Session<Terminated>
pub const fn error(self) -> Session<Terminated>
Applies error and enters Terminated.
Source§impl Session<SaslInitial>
impl Session<SaslInitial>
Source§impl Session<Sasl>
impl Session<Sasl>
Sourcepub const fn continue_response(self) -> Session<SaslResponse>
pub const fn continue_response(self) -> Session<SaslResponse>
Applies continue_response and enters SaslResponse.
Sourcepub const fn final_response(self) -> Session<Auth>
pub const fn final_response(self) -> Session<Auth>
Applies final_response and enters Auth.
Sourcepub const fn error(self) -> Session<Terminated>
pub const fn error(self) -> Session<Terminated>
Applies error and enters Terminated.
Source§impl Session<SaslResponse>
impl Session<SaslResponse>
Source§impl Session<TokenResponse>
impl Session<TokenResponse>
Sourcepub const fn response(self) -> Session<TokenPolicy>
pub const fn response(self) -> Session<TokenPolicy>
Applies response and enters TokenPolicy.
Source§impl Session<TokenPolicy>
impl Session<TokenPolicy>
Sourcepub const fn continue_token(self) -> Session<TokenResponse>
pub const fn continue_token(self) -> Session<TokenResponse>
Applies continue_token and enters TokenResponse.
Sourcepub const fn error(self) -> Session<Terminated>
pub const fn error(self) -> Session<Terminated>
Applies error and enters Terminated.
Source§impl Session<StartupReady>
impl Session<StartupReady>
Sourcepub const fn parameter_status(self) -> Session<StartupReady>
pub const fn parameter_status(self) -> Session<StartupReady>
Applies parameter_status and enters StartupReady.
Sourcepub const fn backend_key_data(self) -> Session<StartupReady>
pub const fn backend_key_data(self) -> Session<StartupReady>
Applies backend_key_data and enters StartupReady.
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