pub struct DualSession<Phase> { /* private fields */ }Expand description
Typestate witness for the role dual to Session.
Implementations§
Source§impl DualSession<Ready>
impl DualSession<Ready>
Source§impl DualSession<Ready>
impl DualSession<Ready>
Sourcepub const fn query(self) -> DualSession<Simple>
pub const fn query(self) -> DualSession<Simple>
Applies the dual query transition and enters Simple.
Sourcepub const fn parse(self) -> DualSession<ParseResponse>
pub const fn parse(self) -> DualSession<ParseResponse>
Applies the dual parse transition and enters ParseResponse.
Sourcepub const fn bind(self) -> DualSession<BindResponse>
pub const fn bind(self) -> DualSession<BindResponse>
Applies the dual bind transition and enters BindResponse.
Sourcepub const fn describe(self) -> DualSession<DescribeResponse>
pub const fn describe(self) -> DualSession<DescribeResponse>
Applies the dual describe transition and enters DescribeResponse.
Sourcepub const fn execute(self) -> DualSession<ExecuteResponse>
pub const fn execute(self) -> DualSession<ExecuteResponse>
Applies the dual execute transition and enters ExecuteResponse.
Sourcepub const fn close(self) -> DualSession<CloseResponse>
pub const fn close(self) -> DualSession<CloseResponse>
Applies the dual close transition and enters CloseResponse.
Sourcepub const fn function_call(self) -> DualSession<FunctionResponse>
pub const fn function_call(self) -> DualSession<FunctionResponse>
Applies the dual function_call transition and enters FunctionResponse.
Sourcepub const fn terminate(self) -> DualSession<Terminated>
pub const fn terminate(self) -> DualSession<Terminated>
Applies the dual terminate transition and enters Terminated.
Source§impl DualSession<Simple>
impl DualSession<Simple>
Sourcepub const fn continue_response(self) -> DualSession<Simple>
pub const fn continue_response(self) -> DualSession<Simple>
Applies the dual continue_response transition and enters Simple.
Sourcepub const fn copy_in(self) -> DualSession<SimpleCopyIn>
pub const fn copy_in(self) -> DualSession<SimpleCopyIn>
Applies the dual copy_in transition and enters SimpleCopyIn.
Sourcepub const fn copy_out(self) -> DualSession<SimpleCopyOut>
pub const fn copy_out(self) -> DualSession<SimpleCopyOut>
Applies the dual copy_out transition and enters SimpleCopyOut.
Sourcepub const fn copy_both(self) -> DualSession<SimpleCopyBoth>
pub const fn copy_both(self) -> DualSession<SimpleCopyBoth>
Applies the dual copy_both transition and enters SimpleCopyBoth.
Sourcepub const fn ready(self) -> DualSession<Ready>
pub const fn ready(self) -> DualSession<Ready>
Applies the dual ready transition and enters Ready.
Sourcepub const fn error(self) -> DualSession<SimpleError>
pub const fn error(self) -> DualSession<SimpleError>
Applies the dual error transition and enters SimpleError.
Source§impl DualSession<SimpleError>
impl DualSession<SimpleError>
Sourcepub const fn ready(self) -> DualSession<Ready>
pub const fn ready(self) -> DualSession<Ready>
Applies the dual ready transition and enters Ready.
Source§impl DualSession<Building>
impl DualSession<Building>
Sourcepub const fn parse(self) -> DualSession<ParseResponse>
pub const fn parse(self) -> DualSession<ParseResponse>
Applies the dual parse transition and enters ParseResponse.
Sourcepub const fn bind(self) -> DualSession<BindResponse>
pub const fn bind(self) -> DualSession<BindResponse>
Applies the dual bind transition and enters BindResponse.
Sourcepub const fn describe(self) -> DualSession<DescribeResponse>
pub const fn describe(self) -> DualSession<DescribeResponse>
Applies the dual describe transition and enters DescribeResponse.
Sourcepub const fn execute(self) -> DualSession<ExecuteResponse>
pub const fn execute(self) -> DualSession<ExecuteResponse>
Applies the dual execute transition and enters ExecuteResponse.
Sourcepub const fn close(self) -> DualSession<CloseResponse>
pub const fn close(self) -> DualSession<CloseResponse>
Applies the dual close transition and enters CloseResponse.
Sourcepub const fn flush(self) -> DualSession<Building>
pub const fn flush(self) -> DualSession<Building>
Applies the dual flush transition and enters Building.
Sourcepub const fn sync(self) -> DualSession<SyncResponse>
pub const fn sync(self) -> DualSession<SyncResponse>
Applies the dual sync transition and enters SyncResponse.
Source§impl DualSession<ParseResponse>
impl DualSession<ParseResponse>
Sourcepub const fn complete(self) -> DualSession<Building>
pub const fn complete(self) -> DualSession<Building>
Applies the dual complete transition and enters Building.
Sourcepub const fn error(self) -> DualSession<ExtendedError>
pub const fn error(self) -> DualSession<ExtendedError>
Applies the dual error transition and enters ExtendedError.
Source§impl DualSession<BindResponse>
impl DualSession<BindResponse>
Sourcepub const fn complete(self) -> DualSession<Building>
pub const fn complete(self) -> DualSession<Building>
Applies the dual complete transition and enters Building.
Sourcepub const fn error(self) -> DualSession<ExtendedError>
pub const fn error(self) -> DualSession<ExtendedError>
Applies the dual error transition and enters ExtendedError.
Source§impl DualSession<DescribeResponse>
impl DualSession<DescribeResponse>
Sourcepub const fn row_description(self) -> DualSession<Building>
pub const fn row_description(self) -> DualSession<Building>
Applies the dual row_description transition and enters Building.
Sourcepub const fn no_data(self) -> DualSession<Building>
pub const fn no_data(self) -> DualSession<Building>
Applies the dual no_data transition and enters Building.
Sourcepub const fn error(self) -> DualSession<ExtendedError>
pub const fn error(self) -> DualSession<ExtendedError>
Applies the dual error transition and enters ExtendedError.
Source§impl DualSession<ExecuteResponse>
impl DualSession<ExecuteResponse>
Sourcepub const fn continue_response(self) -> DualSession<ExecuteResponse>
pub const fn continue_response(self) -> DualSession<ExecuteResponse>
Applies the dual continue_response transition and enters ExecuteResponse.
Sourcepub const fn copy_in(self) -> DualSession<ExtendedCopyIn>
pub const fn copy_in(self) -> DualSession<ExtendedCopyIn>
Applies the dual copy_in transition and enters ExtendedCopyIn.
Sourcepub const fn copy_out(self) -> DualSession<ExtendedCopyOut>
pub const fn copy_out(self) -> DualSession<ExtendedCopyOut>
Applies the dual copy_out transition and enters ExtendedCopyOut.
Sourcepub const fn copy_both(self) -> DualSession<ExtendedCopyBoth>
pub const fn copy_both(self) -> DualSession<ExtendedCopyBoth>
Applies the dual copy_both transition and enters ExtendedCopyBoth.
Sourcepub const fn command_complete(self) -> DualSession<Building>
pub const fn command_complete(self) -> DualSession<Building>
Applies the dual command_complete transition and enters Building.
Sourcepub const fn portal_suspended(self) -> DualSession<Building>
pub const fn portal_suspended(self) -> DualSession<Building>
Applies the dual portal_suspended transition and enters Building.
Sourcepub const fn error(self) -> DualSession<ExtendedError>
pub const fn error(self) -> DualSession<ExtendedError>
Applies the dual error transition and enters ExtendedError.
Source§impl DualSession<CloseResponse>
impl DualSession<CloseResponse>
Sourcepub const fn complete(self) -> DualSession<Building>
pub const fn complete(self) -> DualSession<Building>
Applies the dual complete transition and enters Building.
Sourcepub const fn error(self) -> DualSession<ExtendedError>
pub const fn error(self) -> DualSession<ExtendedError>
Applies the dual error transition and enters ExtendedError.
Source§impl DualSession<ExtendedError>
impl DualSession<ExtendedError>
Sourcepub const fn discard(self) -> DualSession<ExtendedError>
pub const fn discard(self) -> DualSession<ExtendedError>
Applies the dual discard transition and enters ExtendedError.
Sourcepub const fn sync(self) -> DualSession<SyncResponse>
pub const fn sync(self) -> DualSession<SyncResponse>
Applies the dual sync transition and enters SyncResponse.
Source§impl DualSession<SyncResponse>
impl DualSession<SyncResponse>
Sourcepub const fn ready(self) -> DualSession<Ready>
pub const fn ready(self) -> DualSession<Ready>
Applies the dual ready transition and enters Ready.
Source§impl DualSession<FunctionResponse>
impl DualSession<FunctionResponse>
Sourcepub const fn result(self) -> DualSession<FunctionReady>
pub const fn result(self) -> DualSession<FunctionReady>
Applies the dual result transition and enters FunctionReady.
Sourcepub const fn error(self) -> DualSession<FunctionReady>
pub const fn error(self) -> DualSession<FunctionReady>
Applies the dual error transition and enters FunctionReady.
Source§impl DualSession<FunctionReady>
impl DualSession<FunctionReady>
Sourcepub const fn ready(self) -> DualSession<Ready>
pub const fn ready(self) -> DualSession<Ready>
Applies the dual ready transition and enters Ready.
Source§impl DualSession<SimpleCopyIn>
impl DualSession<SimpleCopyIn>
Sourcepub const fn data(self) -> DualSession<SimpleCopyIn>
pub const fn data(self) -> DualSession<SimpleCopyIn>
Applies the dual data transition and enters SimpleCopyIn.
Sourcepub const fn done(self) -> DualSession<SimpleCopyInDone>
pub const fn done(self) -> DualSession<SimpleCopyInDone>
Applies the dual done transition and enters SimpleCopyInDone.
Sourcepub const fn fail(self) -> DualSession<SimpleCopyInFailed>
pub const fn fail(self) -> DualSession<SimpleCopyInFailed>
Applies the dual fail transition and enters SimpleCopyInFailed.
Source§impl DualSession<SimpleCopyInDone>
impl DualSession<SimpleCopyInDone>
Sourcepub const fn command_complete(self) -> DualSession<SimpleCopyReady>
pub const fn command_complete(self) -> DualSession<SimpleCopyReady>
Applies the dual command_complete transition and enters SimpleCopyReady.
Source§impl DualSession<SimpleCopyInFailed>
impl DualSession<SimpleCopyInFailed>
Sourcepub const fn error(self) -> DualSession<SimpleCopyReady>
pub const fn error(self) -> DualSession<SimpleCopyReady>
Applies the dual error transition and enters SimpleCopyReady.
Source§impl DualSession<SimpleCopyOut>
impl DualSession<SimpleCopyOut>
Sourcepub const fn data(self) -> DualSession<SimpleCopyOut>
pub const fn data(self) -> DualSession<SimpleCopyOut>
Applies the dual data transition and enters SimpleCopyOut.
Sourcepub const fn done(self) -> DualSession<SimpleCopyOutDone>
pub const fn done(self) -> DualSession<SimpleCopyOutDone>
Applies the dual done transition and enters SimpleCopyOutDone.
Sourcepub const fn error(self) -> DualSession<SimpleCopyReady>
pub const fn error(self) -> DualSession<SimpleCopyReady>
Applies the dual error transition and enters SimpleCopyReady.
Source§impl DualSession<SimpleCopyOutDone>
impl DualSession<SimpleCopyOutDone>
Sourcepub const fn command_complete(self) -> DualSession<SimpleCopyReady>
pub const fn command_complete(self) -> DualSession<SimpleCopyReady>
Applies the dual command_complete transition and enters SimpleCopyReady.
Source§impl DualSession<SimpleCopyReady>
impl DualSession<SimpleCopyReady>
Sourcepub const fn ready(self) -> DualSession<Ready>
pub const fn ready(self) -> DualSession<Ready>
Applies the dual ready transition and enters Ready.
Source§impl DualSession<ExtendedCopyIn>
impl DualSession<ExtendedCopyIn>
Sourcepub const fn data(self) -> DualSession<ExtendedCopyIn>
pub const fn data(self) -> DualSession<ExtendedCopyIn>
Applies the dual data transition and enters ExtendedCopyIn.
Sourcepub const fn done(self) -> DualSession<ExtendedCopyInDone>
pub const fn done(self) -> DualSession<ExtendedCopyInDone>
Applies the dual done transition and enters ExtendedCopyInDone.
Sourcepub const fn fail(self) -> DualSession<ExtendedCopyInFailed>
pub const fn fail(self) -> DualSession<ExtendedCopyInFailed>
Applies the dual fail transition and enters ExtendedCopyInFailed.
Source§impl DualSession<ExtendedCopyInDone>
impl DualSession<ExtendedCopyInDone>
Sourcepub const fn command_complete(self) -> DualSession<Building>
pub const fn command_complete(self) -> DualSession<Building>
Applies the dual command_complete transition and enters Building.
Source§impl DualSession<ExtendedCopyInFailed>
impl DualSession<ExtendedCopyInFailed>
Sourcepub const fn error(self) -> DualSession<ExtendedError>
pub const fn error(self) -> DualSession<ExtendedError>
Applies the dual error transition and enters ExtendedError.
Source§impl DualSession<ExtendedCopyOut>
impl DualSession<ExtendedCopyOut>
Sourcepub const fn data(self) -> DualSession<ExtendedCopyOut>
pub const fn data(self) -> DualSession<ExtendedCopyOut>
Applies the dual data transition and enters ExtendedCopyOut.
Sourcepub const fn done(self) -> DualSession<ExtendedCopyOutDone>
pub const fn done(self) -> DualSession<ExtendedCopyOutDone>
Applies the dual done transition and enters ExtendedCopyOutDone.
Sourcepub const fn error(self) -> DualSession<ExtendedError>
pub const fn error(self) -> DualSession<ExtendedError>
Applies the dual error transition and enters ExtendedError.
Source§impl DualSession<ExtendedCopyOutDone>
impl DualSession<ExtendedCopyOutDone>
Sourcepub const fn command_complete(self) -> DualSession<Building>
pub const fn command_complete(self) -> DualSession<Building>
Applies the dual command_complete transition and enters Building.
Source§impl DualSession<SimpleCopyBoth>
impl DualSession<SimpleCopyBoth>
Sourcepub const fn send_data(self) -> DualSession<SimpleCopyBoth>
pub const fn send_data(self) -> DualSession<SimpleCopyBoth>
Applies the dual send_data transition and enters SimpleCopyBoth.
Sourcepub const fn receive_data(self) -> DualSession<SimpleCopyBoth>
pub const fn receive_data(self) -> DualSession<SimpleCopyBoth>
Applies the dual receive_data transition and enters SimpleCopyBoth.
Sourcepub const fn send_done(self) -> DualSession<SimpleCopyBothServerDone>
pub const fn send_done(self) -> DualSession<SimpleCopyBothServerDone>
Applies the dual send_done transition and enters SimpleCopyBothServerDone.
Sourcepub const fn receive_done(self) -> DualSession<SimpleCopyBothClientDone>
pub const fn receive_done(self) -> DualSession<SimpleCopyBothClientDone>
Applies the dual receive_done transition and enters SimpleCopyBothClientDone.
Sourcepub const fn fail(self) -> DualSession<SimpleCopyBothFailed>
pub const fn fail(self) -> DualSession<SimpleCopyBothFailed>
Applies the dual fail transition and enters SimpleCopyBothFailed.
Sourcepub const fn error(self) -> DualSession<SimpleCopyReady>
pub const fn error(self) -> DualSession<SimpleCopyReady>
Applies the dual error transition and enters SimpleCopyReady.
Source§impl DualSession<SimpleCopyBothClientDone>
impl DualSession<SimpleCopyBothClientDone>
Sourcepub const fn send_data(self) -> DualSession<SimpleCopyBothClientDone>
pub const fn send_data(self) -> DualSession<SimpleCopyBothClientDone>
Applies the dual send_data transition and enters SimpleCopyBothClientDone.
Sourcepub const fn send_done(self) -> DualSession<SimpleCopyBothDone>
pub const fn send_done(self) -> DualSession<SimpleCopyBothDone>
Applies the dual send_done transition and enters SimpleCopyBothDone.
Sourcepub const fn error(self) -> DualSession<SimpleCopyReady>
pub const fn error(self) -> DualSession<SimpleCopyReady>
Applies the dual error transition and enters SimpleCopyReady.
Source§impl DualSession<SimpleCopyBothServerDone>
impl DualSession<SimpleCopyBothServerDone>
Sourcepub const fn receive_data(self) -> DualSession<SimpleCopyBothServerDone>
pub const fn receive_data(self) -> DualSession<SimpleCopyBothServerDone>
Applies the dual receive_data transition and enters SimpleCopyBothServerDone.
Sourcepub const fn receive_done(self) -> DualSession<SimpleCopyBothDone>
pub const fn receive_done(self) -> DualSession<SimpleCopyBothDone>
Applies the dual receive_done transition and enters SimpleCopyBothDone.
Sourcepub const fn fail(self) -> DualSession<SimpleCopyBothFailed>
pub const fn fail(self) -> DualSession<SimpleCopyBothFailed>
Applies the dual fail transition and enters SimpleCopyBothFailed.
Source§impl DualSession<SimpleCopyBothDone>
impl DualSession<SimpleCopyBothDone>
Sourcepub const fn command_complete(self) -> DualSession<SimpleCopyReady>
pub const fn command_complete(self) -> DualSession<SimpleCopyReady>
Applies the dual command_complete transition and enters SimpleCopyReady.
Source§impl DualSession<SimpleCopyBothFailed>
impl DualSession<SimpleCopyBothFailed>
Sourcepub const fn error(self) -> DualSession<SimpleCopyReady>
pub const fn error(self) -> DualSession<SimpleCopyReady>
Applies the dual error transition and enters SimpleCopyReady.
Source§impl DualSession<ExtendedCopyBoth>
impl DualSession<ExtendedCopyBoth>
Sourcepub const fn send_data(self) -> DualSession<ExtendedCopyBoth>
pub const fn send_data(self) -> DualSession<ExtendedCopyBoth>
Applies the dual send_data transition and enters ExtendedCopyBoth.
Sourcepub const fn receive_data(self) -> DualSession<ExtendedCopyBoth>
pub const fn receive_data(self) -> DualSession<ExtendedCopyBoth>
Applies the dual receive_data transition and enters ExtendedCopyBoth.
Sourcepub const fn send_done(self) -> DualSession<ExtendedCopyBothServerDone>
pub const fn send_done(self) -> DualSession<ExtendedCopyBothServerDone>
Applies the dual send_done transition and enters ExtendedCopyBothServerDone.
Sourcepub const fn receive_done(self) -> DualSession<ExtendedCopyBothClientDone>
pub const fn receive_done(self) -> DualSession<ExtendedCopyBothClientDone>
Applies the dual receive_done transition and enters ExtendedCopyBothClientDone.
Sourcepub const fn fail(self) -> DualSession<ExtendedCopyBothFailed>
pub const fn fail(self) -> DualSession<ExtendedCopyBothFailed>
Applies the dual fail transition and enters ExtendedCopyBothFailed.
Sourcepub const fn error(self) -> DualSession<ExtendedError>
pub const fn error(self) -> DualSession<ExtendedError>
Applies the dual error transition and enters ExtendedError.
Source§impl DualSession<ExtendedCopyBothClientDone>
impl DualSession<ExtendedCopyBothClientDone>
Sourcepub const fn send_data(self) -> DualSession<ExtendedCopyBothClientDone>
pub const fn send_data(self) -> DualSession<ExtendedCopyBothClientDone>
Applies the dual send_data transition and enters ExtendedCopyBothClientDone.
Sourcepub const fn send_done(self) -> DualSession<ExtendedCopyBothDone>
pub const fn send_done(self) -> DualSession<ExtendedCopyBothDone>
Applies the dual send_done transition and enters ExtendedCopyBothDone.
Sourcepub const fn error(self) -> DualSession<ExtendedError>
pub const fn error(self) -> DualSession<ExtendedError>
Applies the dual error transition and enters ExtendedError.
Source§impl DualSession<ExtendedCopyBothServerDone>
impl DualSession<ExtendedCopyBothServerDone>
Sourcepub const fn receive_data(self) -> DualSession<ExtendedCopyBothServerDone>
pub const fn receive_data(self) -> DualSession<ExtendedCopyBothServerDone>
Applies the dual receive_data transition and enters ExtendedCopyBothServerDone.
Sourcepub const fn receive_done(self) -> DualSession<ExtendedCopyBothDone>
pub const fn receive_done(self) -> DualSession<ExtendedCopyBothDone>
Applies the dual receive_done transition and enters ExtendedCopyBothDone.
Sourcepub const fn fail(self) -> DualSession<ExtendedCopyBothFailed>
pub const fn fail(self) -> DualSession<ExtendedCopyBothFailed>
Applies the dual fail transition and enters ExtendedCopyBothFailed.
Source§impl DualSession<ExtendedCopyBothDone>
impl DualSession<ExtendedCopyBothDone>
Sourcepub const fn command_complete(self) -> DualSession<Building>
pub const fn command_complete(self) -> DualSession<Building>
Applies the dual command_complete transition and enters Building.
Source§impl DualSession<ExtendedCopyBothFailed>
impl DualSession<ExtendedCopyBothFailed>
Sourcepub const fn error(self) -> DualSession<ExtendedError>
pub const fn error(self) -> DualSession<ExtendedError>
Applies the dual error transition and enters ExtendedError.
Trait Implementations§
Source§impl<Phase: Clone> Clone for DualSession<Phase>
impl<Phase: Clone> Clone for DualSession<Phase>
Source§fn clone(&self) -> DualSession<Phase>
fn clone(&self) -> DualSession<Phase>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more