pub struct Session<Phase> { /* private fields */ }Expand description
Zero-sized typestate witness for this protocol role.
Implementations§
Source§impl Session<Ready>
impl Session<Ready>
Sourcepub const fn parse(self) -> Session<ParseResponse>
pub const fn parse(self) -> Session<ParseResponse>
Applies parse and enters ParseResponse.
Sourcepub const fn bind(self) -> Session<BindResponse>
pub const fn bind(self) -> Session<BindResponse>
Applies bind and enters BindResponse.
Sourcepub const fn describe(self) -> Session<DescribeResponse>
pub const fn describe(self) -> Session<DescribeResponse>
Applies describe and enters DescribeResponse.
Sourcepub const fn execute(self) -> Session<ExecuteResponse>
pub const fn execute(self) -> Session<ExecuteResponse>
Applies execute and enters ExecuteResponse.
Sourcepub const fn close(self) -> Session<CloseResponse>
pub const fn close(self) -> Session<CloseResponse>
Applies close and enters CloseResponse.
Sourcepub const fn function_call(self) -> Session<FunctionResponse>
pub const fn function_call(self) -> Session<FunctionResponse>
Applies function_call and enters FunctionResponse.
Sourcepub const fn terminate(self) -> Session<Terminated>
pub const fn terminate(self) -> Session<Terminated>
Applies terminate and enters Terminated.
Source§impl Session<Simple>
impl Session<Simple>
Sourcepub const fn continue_response(self) -> Session<Simple>
pub const fn continue_response(self) -> Session<Simple>
Applies continue_response and enters Simple.
Sourcepub const fn copy_in(self) -> Session<SimpleCopyIn>
pub const fn copy_in(self) -> Session<SimpleCopyIn>
Applies copy_in and enters SimpleCopyIn.
Sourcepub const fn copy_out(self) -> Session<SimpleCopyOut>
pub const fn copy_out(self) -> Session<SimpleCopyOut>
Applies copy_out and enters SimpleCopyOut.
Sourcepub const fn copy_both(self) -> Session<SimpleCopyBoth>
pub const fn copy_both(self) -> Session<SimpleCopyBoth>
Applies copy_both and enters SimpleCopyBoth.
Sourcepub const fn error(self) -> Session<SimpleError>
pub const fn error(self) -> Session<SimpleError>
Applies error and enters SimpleError.
Source§impl Session<SimpleError>
impl Session<SimpleError>
Source§impl Session<Building>
impl Session<Building>
Sourcepub const fn parse(self) -> Session<ParseResponse>
pub const fn parse(self) -> Session<ParseResponse>
Applies parse and enters ParseResponse.
Sourcepub const fn bind(self) -> Session<BindResponse>
pub const fn bind(self) -> Session<BindResponse>
Applies bind and enters BindResponse.
Sourcepub const fn describe(self) -> Session<DescribeResponse>
pub const fn describe(self) -> Session<DescribeResponse>
Applies describe and enters DescribeResponse.
Sourcepub const fn execute(self) -> Session<ExecuteResponse>
pub const fn execute(self) -> Session<ExecuteResponse>
Applies execute and enters ExecuteResponse.
Sourcepub const fn close(self) -> Session<CloseResponse>
pub const fn close(self) -> Session<CloseResponse>
Applies close and enters CloseResponse.
Sourcepub const fn sync(self) -> Session<SyncResponse>
pub const fn sync(self) -> Session<SyncResponse>
Applies sync and enters SyncResponse.
Source§impl Session<ParseResponse>
impl Session<ParseResponse>
Sourcepub const fn error(self) -> Session<ExtendedError>
pub const fn error(self) -> Session<ExtendedError>
Applies error and enters ExtendedError.
Source§impl Session<BindResponse>
impl Session<BindResponse>
Sourcepub const fn error(self) -> Session<ExtendedError>
pub const fn error(self) -> Session<ExtendedError>
Applies error and enters ExtendedError.
Source§impl Session<DescribeResponse>
impl Session<DescribeResponse>
Sourcepub const fn row_description(self) -> Session<Building>
pub const fn row_description(self) -> Session<Building>
Applies row_description and enters Building.
Sourcepub const fn error(self) -> Session<ExtendedError>
pub const fn error(self) -> Session<ExtendedError>
Applies error and enters ExtendedError.
Source§impl Session<ExecuteResponse>
impl Session<ExecuteResponse>
Sourcepub const fn continue_response(self) -> Session<ExecuteResponse>
pub const fn continue_response(self) -> Session<ExecuteResponse>
Applies continue_response and enters ExecuteResponse.
Sourcepub const fn copy_in(self) -> Session<ExtendedCopyIn>
pub const fn copy_in(self) -> Session<ExtendedCopyIn>
Applies copy_in and enters ExtendedCopyIn.
Sourcepub const fn copy_out(self) -> Session<ExtendedCopyOut>
pub const fn copy_out(self) -> Session<ExtendedCopyOut>
Applies copy_out and enters ExtendedCopyOut.
Sourcepub const fn copy_both(self) -> Session<ExtendedCopyBoth>
pub const fn copy_both(self) -> Session<ExtendedCopyBoth>
Applies copy_both and enters ExtendedCopyBoth.
Sourcepub const fn command_complete(self) -> Session<Building>
pub const fn command_complete(self) -> Session<Building>
Applies command_complete and enters Building.
Sourcepub const fn portal_suspended(self) -> Session<Building>
pub const fn portal_suspended(self) -> Session<Building>
Applies portal_suspended and enters Building.
Sourcepub const fn error(self) -> Session<ExtendedError>
pub const fn error(self) -> Session<ExtendedError>
Applies error and enters ExtendedError.
Source§impl Session<CloseResponse>
impl Session<CloseResponse>
Sourcepub const fn error(self) -> Session<ExtendedError>
pub const fn error(self) -> Session<ExtendedError>
Applies error and enters ExtendedError.
Source§impl Session<ExtendedError>
impl Session<ExtendedError>
Sourcepub const fn discard(self) -> Session<ExtendedError>
pub const fn discard(self) -> Session<ExtendedError>
Applies discard and enters ExtendedError.
Sourcepub const fn sync(self) -> Session<SyncResponse>
pub const fn sync(self) -> Session<SyncResponse>
Applies sync and enters SyncResponse.
Source§impl Session<SyncResponse>
impl Session<SyncResponse>
Source§impl Session<FunctionResponse>
impl Session<FunctionResponse>
Sourcepub const fn result(self) -> Session<FunctionReady>
pub const fn result(self) -> Session<FunctionReady>
Applies result and enters FunctionReady.
Sourcepub const fn error(self) -> Session<FunctionReady>
pub const fn error(self) -> Session<FunctionReady>
Applies error and enters FunctionReady.
Source§impl Session<FunctionReady>
impl Session<FunctionReady>
Source§impl Session<SimpleCopyIn>
impl Session<SimpleCopyIn>
Sourcepub const fn data(self) -> Session<SimpleCopyIn>
pub const fn data(self) -> Session<SimpleCopyIn>
Applies data and enters SimpleCopyIn.
Sourcepub const fn done(self) -> Session<SimpleCopyInDone>
pub const fn done(self) -> Session<SimpleCopyInDone>
Applies done and enters SimpleCopyInDone.
Sourcepub const fn fail(self) -> Session<SimpleCopyInFailed>
pub const fn fail(self) -> Session<SimpleCopyInFailed>
Applies fail and enters SimpleCopyInFailed.
Source§impl Session<SimpleCopyInDone>
impl Session<SimpleCopyInDone>
Sourcepub const fn command_complete(self) -> Session<SimpleCopyReady>
pub const fn command_complete(self) -> Session<SimpleCopyReady>
Applies command_complete and enters SimpleCopyReady.
Source§impl Session<SimpleCopyInFailed>
impl Session<SimpleCopyInFailed>
Sourcepub const fn error(self) -> Session<SimpleCopyReady>
pub const fn error(self) -> Session<SimpleCopyReady>
Applies error and enters SimpleCopyReady.
Source§impl Session<SimpleCopyOut>
impl Session<SimpleCopyOut>
Sourcepub const fn data(self) -> Session<SimpleCopyOut>
pub const fn data(self) -> Session<SimpleCopyOut>
Applies data and enters SimpleCopyOut.
Sourcepub const fn done(self) -> Session<SimpleCopyOutDone>
pub const fn done(self) -> Session<SimpleCopyOutDone>
Applies done and enters SimpleCopyOutDone.
Sourcepub const fn error(self) -> Session<SimpleCopyReady>
pub const fn error(self) -> Session<SimpleCopyReady>
Applies error and enters SimpleCopyReady.
Source§impl Session<SimpleCopyOutDone>
impl Session<SimpleCopyOutDone>
Sourcepub const fn command_complete(self) -> Session<SimpleCopyReady>
pub const fn command_complete(self) -> Session<SimpleCopyReady>
Applies command_complete and enters SimpleCopyReady.
Source§impl Session<ExtendedCopyIn>
impl Session<ExtendedCopyIn>
Sourcepub const fn data(self) -> Session<ExtendedCopyIn>
pub const fn data(self) -> Session<ExtendedCopyIn>
Applies data and enters ExtendedCopyIn.
Sourcepub const fn done(self) -> Session<ExtendedCopyInDone>
pub const fn done(self) -> Session<ExtendedCopyInDone>
Applies done and enters ExtendedCopyInDone.
Sourcepub const fn fail(self) -> Session<ExtendedCopyInFailed>
pub const fn fail(self) -> Session<ExtendedCopyInFailed>
Applies fail and enters ExtendedCopyInFailed.
Source§impl Session<ExtendedCopyInDone>
impl Session<ExtendedCopyInDone>
Sourcepub const fn command_complete(self) -> Session<Building>
pub const fn command_complete(self) -> Session<Building>
Applies command_complete and enters Building.
Source§impl Session<ExtendedCopyInFailed>
impl Session<ExtendedCopyInFailed>
Sourcepub const fn error(self) -> Session<ExtendedError>
pub const fn error(self) -> Session<ExtendedError>
Applies error and enters ExtendedError.
Source§impl Session<ExtendedCopyOut>
impl Session<ExtendedCopyOut>
Sourcepub const fn data(self) -> Session<ExtendedCopyOut>
pub const fn data(self) -> Session<ExtendedCopyOut>
Applies data and enters ExtendedCopyOut.
Sourcepub const fn done(self) -> Session<ExtendedCopyOutDone>
pub const fn done(self) -> Session<ExtendedCopyOutDone>
Applies done and enters ExtendedCopyOutDone.
Sourcepub const fn error(self) -> Session<ExtendedError>
pub const fn error(self) -> Session<ExtendedError>
Applies error and enters ExtendedError.
Source§impl Session<ExtendedCopyOutDone>
impl Session<ExtendedCopyOutDone>
Sourcepub const fn command_complete(self) -> Session<Building>
pub const fn command_complete(self) -> Session<Building>
Applies command_complete and enters Building.
Source§impl Session<SimpleCopyBoth>
impl Session<SimpleCopyBoth>
Sourcepub const fn send_data(self) -> Session<SimpleCopyBoth>
pub const fn send_data(self) -> Session<SimpleCopyBoth>
Applies send_data and enters SimpleCopyBoth.
Sourcepub const fn receive_data(self) -> Session<SimpleCopyBoth>
pub const fn receive_data(self) -> Session<SimpleCopyBoth>
Applies receive_data and enters SimpleCopyBoth.
Sourcepub const fn send_done(self) -> Session<SimpleCopyBothServerDone>
pub const fn send_done(self) -> Session<SimpleCopyBothServerDone>
Applies send_done and enters SimpleCopyBothServerDone.
Sourcepub const fn receive_done(self) -> Session<SimpleCopyBothClientDone>
pub const fn receive_done(self) -> Session<SimpleCopyBothClientDone>
Applies receive_done and enters SimpleCopyBothClientDone.
Sourcepub const fn fail(self) -> Session<SimpleCopyBothFailed>
pub const fn fail(self) -> Session<SimpleCopyBothFailed>
Applies fail and enters SimpleCopyBothFailed.
Sourcepub const fn error(self) -> Session<SimpleCopyReady>
pub const fn error(self) -> Session<SimpleCopyReady>
Applies error and enters SimpleCopyReady.
Source§impl Session<SimpleCopyBothClientDone>
impl Session<SimpleCopyBothClientDone>
Sourcepub const fn send_data(self) -> Session<SimpleCopyBothClientDone>
pub const fn send_data(self) -> Session<SimpleCopyBothClientDone>
Applies send_data and enters SimpleCopyBothClientDone.
Sourcepub const fn send_done(self) -> Session<SimpleCopyBothDone>
pub const fn send_done(self) -> Session<SimpleCopyBothDone>
Applies send_done and enters SimpleCopyBothDone.
Sourcepub const fn error(self) -> Session<SimpleCopyReady>
pub const fn error(self) -> Session<SimpleCopyReady>
Applies error and enters SimpleCopyReady.
Source§impl Session<SimpleCopyBothServerDone>
impl Session<SimpleCopyBothServerDone>
Sourcepub const fn receive_data(self) -> Session<SimpleCopyBothServerDone>
pub const fn receive_data(self) -> Session<SimpleCopyBothServerDone>
Applies receive_data and enters SimpleCopyBothServerDone.
Sourcepub const fn receive_done(self) -> Session<SimpleCopyBothDone>
pub const fn receive_done(self) -> Session<SimpleCopyBothDone>
Applies receive_done and enters SimpleCopyBothDone.
Sourcepub const fn fail(self) -> Session<SimpleCopyBothFailed>
pub const fn fail(self) -> Session<SimpleCopyBothFailed>
Applies fail and enters SimpleCopyBothFailed.
Source§impl Session<SimpleCopyBothDone>
impl Session<SimpleCopyBothDone>
Sourcepub const fn command_complete(self) -> Session<SimpleCopyReady>
pub const fn command_complete(self) -> Session<SimpleCopyReady>
Applies command_complete and enters SimpleCopyReady.
Source§impl Session<SimpleCopyBothFailed>
impl Session<SimpleCopyBothFailed>
Sourcepub const fn error(self) -> Session<SimpleCopyReady>
pub const fn error(self) -> Session<SimpleCopyReady>
Applies error and enters SimpleCopyReady.
Source§impl Session<ExtendedCopyBoth>
impl Session<ExtendedCopyBoth>
Sourcepub const fn send_data(self) -> Session<ExtendedCopyBoth>
pub const fn send_data(self) -> Session<ExtendedCopyBoth>
Applies send_data and enters ExtendedCopyBoth.
Sourcepub const fn receive_data(self) -> Session<ExtendedCopyBoth>
pub const fn receive_data(self) -> Session<ExtendedCopyBoth>
Applies receive_data and enters ExtendedCopyBoth.
Sourcepub const fn send_done(self) -> Session<ExtendedCopyBothServerDone>
pub const fn send_done(self) -> Session<ExtendedCopyBothServerDone>
Applies send_done and enters ExtendedCopyBothServerDone.
Sourcepub const fn receive_done(self) -> Session<ExtendedCopyBothClientDone>
pub const fn receive_done(self) -> Session<ExtendedCopyBothClientDone>
Applies receive_done and enters ExtendedCopyBothClientDone.
Sourcepub const fn fail(self) -> Session<ExtendedCopyBothFailed>
pub const fn fail(self) -> Session<ExtendedCopyBothFailed>
Applies fail and enters ExtendedCopyBothFailed.
Sourcepub const fn error(self) -> Session<ExtendedError>
pub const fn error(self) -> Session<ExtendedError>
Applies error and enters ExtendedError.
Source§impl Session<ExtendedCopyBothClientDone>
impl Session<ExtendedCopyBothClientDone>
Sourcepub const fn send_data(self) -> Session<ExtendedCopyBothClientDone>
pub const fn send_data(self) -> Session<ExtendedCopyBothClientDone>
Applies send_data and enters ExtendedCopyBothClientDone.
Sourcepub const fn send_done(self) -> Session<ExtendedCopyBothDone>
pub const fn send_done(self) -> Session<ExtendedCopyBothDone>
Applies send_done and enters ExtendedCopyBothDone.
Sourcepub const fn error(self) -> Session<ExtendedError>
pub const fn error(self) -> Session<ExtendedError>
Applies error and enters ExtendedError.
Source§impl Session<ExtendedCopyBothServerDone>
impl Session<ExtendedCopyBothServerDone>
Sourcepub const fn receive_data(self) -> Session<ExtendedCopyBothServerDone>
pub const fn receive_data(self) -> Session<ExtendedCopyBothServerDone>
Applies receive_data and enters ExtendedCopyBothServerDone.
Sourcepub const fn receive_done(self) -> Session<ExtendedCopyBothDone>
pub const fn receive_done(self) -> Session<ExtendedCopyBothDone>
Applies receive_done and enters ExtendedCopyBothDone.
Sourcepub const fn fail(self) -> Session<ExtendedCopyBothFailed>
pub const fn fail(self) -> Session<ExtendedCopyBothFailed>
Applies fail and enters ExtendedCopyBothFailed.
Source§impl Session<ExtendedCopyBothDone>
impl Session<ExtendedCopyBothDone>
Sourcepub const fn command_complete(self) -> Session<Building>
pub const fn command_complete(self) -> Session<Building>
Applies command_complete and enters Building.
Source§impl Session<ExtendedCopyBothFailed>
impl Session<ExtendedCopyBothFailed>
Sourcepub const fn error(self) -> Session<ExtendedError>
pub const fn error(self) -> Session<ExtendedError>
Applies error and enters ExtendedError.