pub enum ClientRole {}Expand description
Marker for middleware handling messages sent by a PostgreSQL client.
Trait Implementations§
Source§impl Clone for ClientRole
impl Clone for ClientRole
Source§fn clone(&self) -> ClientRole
fn clone(&self) -> ClientRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClientRole
Source§impl Debug for ClientRole
impl Debug for ClientRole
impl Eq for ClientRole
Source§impl PartialEq for ClientRole
impl PartialEq for ClientRole
impl StructuralPartialEq for ClientRole
Source§impl TypedPhase<ClientRole, FrontendMessage> for Ready
impl TypedPhase<ClientRole, FrontendMessage> for Ready
Source§type ProtocolPhase = Ready
type ProtocolPhase = Ready
Generated grammar phase corresponding to the connection typestate.
Source§type Message = ReadyExternalMessage
type Message = ReadyExternalMessage
Opaque set of decoded messages legal for this role and phase.
Source§impl TypedPhase<ClientRole, FrontendMessage> for ServerAuth
impl TypedPhase<ClientRole, FrontendMessage> for ServerAuth
Source§type ProtocolPhase = Auth
type ProtocolPhase = Auth
Generated grammar phase corresponding to the connection typestate.
Source§type Message = AuthExternalMessage
type Message = AuthExternalMessage
Opaque set of decoded messages legal for this role and phase.
Source§impl TypedPhase<ClientRole, FrontendMessage> for ServerPassword
impl TypedPhase<ClientRole, FrontendMessage> for ServerPassword
Source§type ProtocolPhase = PasswordResponse
type ProtocolPhase = PasswordResponse
Generated grammar phase corresponding to the connection typestate.
Source§type Message = PasswordResponseExternalMessage
type Message = PasswordResponseExternalMessage
Opaque set of decoded messages legal for this role and phase.
Source§impl TypedPhase<ClientRole, FrontendMessage> for ServerSaslInitial
impl TypedPhase<ClientRole, FrontendMessage> for ServerSaslInitial
Source§type ProtocolPhase = SaslInitial
type ProtocolPhase = SaslInitial
Generated grammar phase corresponding to the connection typestate.
Source§type Message = SaslInitialExternalMessage
type Message = SaslInitialExternalMessage
Opaque set of decoded messages legal for this role and phase.
Source§impl TypedPhase<ClientRole, FrontendMessage> for ServerSasl
impl TypedPhase<ClientRole, FrontendMessage> for ServerSasl
Source§type ProtocolPhase = SaslResponse
type ProtocolPhase = SaslResponse
Generated grammar phase corresponding to the connection typestate.
Source§type Message = SaslResponseExternalMessage
type Message = SaslResponseExternalMessage
Opaque set of decoded messages legal for this role and phase.
Source§impl TypedPhase<ClientRole, FrontendMessage> for ServerAuthResponse
impl TypedPhase<ClientRole, FrontendMessage> for ServerAuthResponse
Source§type ProtocolPhase = TokenResponse
type ProtocolPhase = TokenResponse
Generated grammar phase corresponding to the connection typestate.
Source§type Message = TokenResponseExternalMessage
type Message = TokenResponseExternalMessage
Opaque set of decoded messages legal for this role and phase.
Source§impl TypedPhase<ClientRole, FrontendMessage> for ServerStartupReady
impl TypedPhase<ClientRole, FrontendMessage> for ServerStartupReady
Source§type ProtocolPhase = StartupReady
type ProtocolPhase = StartupReady
Generated grammar phase corresponding to the connection typestate.
Source§type Message = StartupReadyExternalMessage
type Message = StartupReadyExternalMessage
Opaque set of decoded messages legal for this role and phase.
Source§impl TypedPhase<ClientRole, FrontendMessage> for ServerBuilding
impl TypedPhase<ClientRole, FrontendMessage> for ServerBuilding
Source§type ProtocolPhase = Building
type ProtocolPhase = Building
Generated grammar phase corresponding to the connection typestate.
Source§type Message = BuildingExternalMessage
type Message = BuildingExternalMessage
Opaque set of decoded messages legal for this role and phase.
Source§impl TypedPhase<ClientRole, FrontendMessage> for ServerExtendedError
impl TypedPhase<ClientRole, FrontendMessage> for ServerExtendedError
Source§type ProtocolPhase = ExtendedError
type ProtocolPhase = ExtendedError
Generated grammar phase corresponding to the connection typestate.
Source§type Message = ExtendedErrorExternalMessage
type Message = ExtendedErrorExternalMessage
Opaque set of decoded messages legal for this role and phase.
Source§impl TypedPhase<ClientRole, FrontendMessage> for ServerCopyIn<CopySimple>
impl TypedPhase<ClientRole, FrontendMessage> for ServerCopyIn<CopySimple>
Source§type ProtocolPhase = SimpleCopyIn
type ProtocolPhase = SimpleCopyIn
Generated grammar phase corresponding to the connection typestate.
Source§type Message = SimpleCopyInExternalMessage
type Message = SimpleCopyInExternalMessage
Opaque set of decoded messages legal for this role and phase.
Source§impl TypedPhase<ClientRole, FrontendMessage> for ServerCopyIn<CopyExtended>
impl TypedPhase<ClientRole, FrontendMessage> for ServerCopyIn<CopyExtended>
Source§type ProtocolPhase = ExtendedCopyIn
type ProtocolPhase = ExtendedCopyIn
Generated grammar phase corresponding to the connection typestate.
Source§type Message = ExtendedCopyInExternalMessage
type Message = ExtendedCopyInExternalMessage
Opaque set of decoded messages legal for this role and phase.
Source§impl TypedPhase<ClientRole, FrontendMessage> for ServerCopyBoth<CopySimple, BothOpen>
impl TypedPhase<ClientRole, FrontendMessage> for ServerCopyBoth<CopySimple, BothOpen>
Source§type ProtocolPhase = SimpleCopyBoth
type ProtocolPhase = SimpleCopyBoth
Generated grammar phase corresponding to the connection typestate.
Source§type Message = SimpleCopyBothExternalMessage
type Message = SimpleCopyBothExternalMessage
Opaque set of decoded messages legal for this role and phase.
Source§impl TypedPhase<ClientRole, FrontendMessage> for ServerCopyBoth<CopyExtended, BothOpen>
impl TypedPhase<ClientRole, FrontendMessage> for ServerCopyBoth<CopyExtended, BothOpen>
Source§type ProtocolPhase = ExtendedCopyBoth
type ProtocolPhase = ExtendedCopyBoth
Generated grammar phase corresponding to the connection typestate.
Source§type Message = ExtendedCopyBothExternalMessage
type Message = ExtendedCopyBothExternalMessage
Opaque set of decoded messages legal for this role and phase.
Source§impl TypedPhase<ClientRole, FrontendMessage> for ServerCopyBoth<CopySimple, BothServerDone>
impl TypedPhase<ClientRole, FrontendMessage> for ServerCopyBoth<CopySimple, BothServerDone>
Source§type ProtocolPhase = SimpleCopyBothServerDone
type ProtocolPhase = SimpleCopyBothServerDone
Generated grammar phase corresponding to the connection typestate.
Source§type Message = SimpleCopyBothServerDoneExternalMessage
type Message = SimpleCopyBothServerDoneExternalMessage
Opaque set of decoded messages legal for this role and phase.
Source§impl TypedPhase<ClientRole, FrontendMessage> for ServerCopyBoth<CopyExtended, BothServerDone>
impl TypedPhase<ClientRole, FrontendMessage> for ServerCopyBoth<CopyExtended, BothServerDone>
Source§type ProtocolPhase = ExtendedCopyBothServerDone
type ProtocolPhase = ExtendedCopyBothServerDone
Generated grammar phase corresponding to the connection typestate.
Source§type Message = ExtendedCopyBothServerDoneExternalMessage
type Message = ExtendedCopyBothServerDoneExternalMessage
Opaque set of decoded messages legal for this role and phase.
Source§impl TypedPhase<ClientRole, PreStartupMessage> for PreStartup
impl TypedPhase<ClientRole, PreStartupMessage> for PreStartup
Source§type ProtocolPhase = PreStartup
type ProtocolPhase = PreStartup
Generated grammar phase corresponding to the connection typestate.
Source§type Message = PreStartupExternalMessage
type Message = PreStartupExternalMessage
Opaque set of decoded messages legal for this role and phase.
Auto Trait Implementations§
impl Freeze for ClientRole
impl RefUnwindSafe for ClientRole
impl Send for ClientRole
impl Sync for ClientRole
impl Unpin for ClientRole
impl UnsafeUnpin for ClientRole
impl UnwindSafe for ClientRole
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