pub enum PreStartupOffer<S, C = Pristine> {
Ssl(Conn<S, ServerSslDecision, C>),
Gss(Conn<S, ServerGssDecision, C>),
Cancel {
conn: Conn<S, Terminated, C>,
process_id: u32,
secret_key: Bytes,
},
Startup {
conn: Conn<S, Startup, C>,
message: StartupMessage,
},
}Expand description
Server-role projection of the client’s first-packet external choice.
Variants§
Ssl(Conn<S, ServerSslDecision, C>)
Client requested TLS negotiation.
Gss(Conn<S, ServerGssDecision, C>)
Client requested GSS encryption negotiation.
Cancel
Client sent an out-of-band cancellation request.
Fields
§
conn: Conn<S, Terminated, C>Terminal connection carrying the received transport.
Startup
Client supplied normal startup parameters.
Fields
§
message: StartupMessageDecoded startup version and parameters.
Trait Implementations§
Auto Trait Implementations§
impl<S, C = Pristine> !Freeze for PreStartupOffer<S, C>
impl<S, C> RefUnwindSafe for PreStartupOffer<S, C>where
S: RefUnwindSafe,
C: RefUnwindSafe,
impl<S, C> Send for PreStartupOffer<S, C>
impl<S, C> Sync for PreStartupOffer<S, C>
impl<S, C> Unpin for PreStartupOffer<S, C>
impl<S, C> UnsafeUnpin for PreStartupOffer<S, C>where
S: UnsafeUnpin,
impl<S, C> UnwindSafe for PreStartupOffer<S, C>where
S: UnwindSafe,
C: 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