pub enum ServerReadyOffer<S, C> {
Query {
conn: Conn<S, ServerSimpleQuery, Dirty>,
query: Bytes,
},
FunctionCall {
conn: Conn<S, ServerFunctionCall, Dirty>,
message: FunctionCall,
},
Extended(ServerExtendedOffer<S, C>),
Terminate(Conn<S, Terminated, C>),
}Expand description
External choice offered by a client while the server role is ready.
Variants§
Query
A simple query, conservatively marking the session dirty.
Fields
§
conn: Conn<S, ServerSimpleQuery, Dirty>Connection serving the query.
FunctionCall
A legacy function-call request.
Fields
§
conn: Conn<S, ServerFunctionCall, Dirty>Connection serving the function call.
§
message: FunctionCallFully decoded function-call message.
Extended(ServerExtendedOffer<S, C>)
One message in an extended-query pipeline.
Terminate(Conn<S, Terminated, C>)
The client terminated the session.
Trait Implementations§
Auto Trait Implementations§
impl<S, C> !Freeze for ServerReadyOffer<S, C>
impl<S, C> RefUnwindSafe for ServerReadyOffer<S, C>where
S: RefUnwindSafe,
C: RefUnwindSafe,
impl<S, C> Send for ServerReadyOffer<S, C>
impl<S, C> Sync for ServerReadyOffer<S, C>
impl<S, C> Unpin for ServerReadyOffer<S, C>
impl<S, C> UnsafeUnpin for ServerReadyOffer<S, C>where
S: UnsafeUnpin,
impl<S, C> UnwindSafe for ServerReadyOffer<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