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 begin_extended(self) -> DualSession<Building>
pub const fn begin_extended(self) -> DualSession<Building>
Applies the dual begin_extended transition and enters Building.
Sourcepub const fn function_call(self) -> DualSession<FunctionCalling>
pub const fn function_call(self) -> DualSession<FunctionCalling>
Applies the dual function_call transition and enters FunctionCalling.
Sourcepub const fn reset(self) -> DualSession<Resetting>
pub const fn reset(self) -> DualSession<Resetting>
Applies the dual reset transition and enters Resetting.
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<FunctionCalling>
impl DualSession<FunctionCalling>
Sourcepub const fn function_response(self) -> DualSession<AwaitingReady>
pub const fn function_response(self) -> DualSession<AwaitingReady>
Applies the dual function_response transition and enters AwaitingReady.
Sourcepub const fn error(self) -> DualSession<Draining>
pub const fn error(self) -> DualSession<Draining>
Applies the dual error transition and enters Draining.
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 enter_copy_in(self) -> DualSession<CopyIn>
pub const fn enter_copy_in(self) -> DualSession<CopyIn>
Applies the dual enter_copy_in transition and enters CopyIn.
Sourcepub const fn enter_copy_out(self) -> DualSession<CopyOut>
pub const fn enter_copy_out(self) -> DualSession<CopyOut>
Applies the dual enter_copy_out transition and enters CopyOut.
Sourcepub const fn enter_copy_both(self) -> DualSession<CopyBoth>
pub const fn enter_copy_both(self) -> DualSession<CopyBoth>
Applies the dual enter_copy_both transition and enters CopyBoth.
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<Draining>
pub const fn error(self) -> DualSession<Draining>
Applies the dual error transition and enters Draining.
Source§impl DualSession<Building>
impl DualSession<Building>
Sourcepub const fn parse(self) -> DualSession<Building>
pub const fn parse(self) -> DualSession<Building>
Applies the dual parse transition and enters Building.
Sourcepub const fn describe(self) -> DualSession<Building>
pub const fn describe(self) -> DualSession<Building>
Applies the dual describe transition and enters Building.
Sourcepub const fn bind(self) -> DualSession<BoundBuilding>
pub const fn bind(self) -> DualSession<BoundBuilding>
Applies the dual bind transition and enters BoundBuilding.
Sourcepub const fn close(self) -> DualSession<Building>
pub const fn close(self) -> DualSession<Building>
Applies the dual close transition and enters Building.
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<AwaitingReady>
pub const fn sync(self) -> DualSession<AwaitingReady>
Applies the dual sync transition and enters AwaitingReady.
Source§impl DualSession<BoundBuilding>
impl DualSession<BoundBuilding>
Sourcepub const fn parse(self) -> DualSession<BoundBuilding>
pub const fn parse(self) -> DualSession<BoundBuilding>
Applies the dual parse transition and enters BoundBuilding.
Sourcepub const fn describe(self) -> DualSession<BoundBuilding>
pub const fn describe(self) -> DualSession<BoundBuilding>
Applies the dual describe transition and enters BoundBuilding.
Sourcepub const fn bind(self) -> DualSession<BoundBuilding>
pub const fn bind(self) -> DualSession<BoundBuilding>
Applies the dual bind transition and enters BoundBuilding.
Sourcepub const fn execute(self) -> DualSession<BoundBuilding>
pub const fn execute(self) -> DualSession<BoundBuilding>
Applies the dual execute transition and enters BoundBuilding.
Sourcepub const fn close(self) -> DualSession<BoundBuilding>
pub const fn close(self) -> DualSession<BoundBuilding>
Applies the dual close transition and enters BoundBuilding.
Sourcepub const fn flush(self) -> DualSession<BoundBuilding>
pub const fn flush(self) -> DualSession<BoundBuilding>
Applies the dual flush transition and enters BoundBuilding.
Sourcepub const fn sync(self) -> DualSession<AwaitingReady>
pub const fn sync(self) -> DualSession<AwaitingReady>
Applies the dual sync transition and enters AwaitingReady.
Source§impl DualSession<AwaitingReady>
impl DualSession<AwaitingReady>
Sourcepub const fn continue_response(self) -> DualSession<AwaitingReady>
pub const fn continue_response(self) -> DualSession<AwaitingReady>
Applies the dual continue_response transition and enters AwaitingReady.
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<Draining>
pub const fn error(self) -> DualSession<Draining>
Applies the dual error transition and enters Draining.
Source§impl DualSession<CopyIn>
impl DualSession<CopyIn>
Sourcepub const fn copy_data(self) -> DualSession<CopyIn>
pub const fn copy_data(self) -> DualSession<CopyIn>
Applies the dual copy_data transition and enters CopyIn.
Sourcepub const fn copy_done(self) -> DualSession<AwaitingReady>
pub const fn copy_done(self) -> DualSession<AwaitingReady>
Applies the dual copy_done transition and enters AwaitingReady.
Sourcepub const fn copy_fail(self) -> DualSession<AwaitingReady>
pub const fn copy_fail(self) -> DualSession<AwaitingReady>
Applies the dual copy_fail transition and enters AwaitingReady.
Sourcepub const fn error(self) -> DualSession<Draining>
pub const fn error(self) -> DualSession<Draining>
Applies the dual error transition and enters Draining.
Source§impl DualSession<CopyOut>
impl DualSession<CopyOut>
Sourcepub const fn copy_data(self) -> DualSession<CopyOut>
pub const fn copy_data(self) -> DualSession<CopyOut>
Applies the dual copy_data transition and enters CopyOut.
Sourcepub const fn copy_done(self) -> DualSession<AwaitingReady>
pub const fn copy_done(self) -> DualSession<AwaitingReady>
Applies the dual copy_done transition and enters AwaitingReady.
Sourcepub const fn error(self) -> DualSession<Draining>
pub const fn error(self) -> DualSession<Draining>
Applies the dual error transition and enters Draining.
Source§impl DualSession<CopyBoth>
impl DualSession<CopyBoth>
Sourcepub const fn send_copy_data(self) -> DualSession<CopyBoth>
pub const fn send_copy_data(self) -> DualSession<CopyBoth>
Applies the dual send_copy_data transition and enters CopyBoth.
Sourcepub const fn receive_copy_data(self) -> DualSession<CopyBoth>
pub const fn receive_copy_data(self) -> DualSession<CopyBoth>
Applies the dual receive_copy_data transition and enters CopyBoth.
Sourcepub const fn send_copy_done(self) -> DualSession<CopyBothClientDone>
pub const fn send_copy_done(self) -> DualSession<CopyBothClientDone>
Applies the dual send_copy_done transition and enters CopyBothClientDone.
Sourcepub const fn receive_copy_done(self) -> DualSession<CopyBothServerDone>
pub const fn receive_copy_done(self) -> DualSession<CopyBothServerDone>
Applies the dual receive_copy_done transition and enters CopyBothServerDone.
Sourcepub const fn error(self) -> DualSession<Draining>
pub const fn error(self) -> DualSession<Draining>
Applies the dual error transition and enters Draining.
Source§impl DualSession<CopyBothClientDone>
impl DualSession<CopyBothClientDone>
Sourcepub const fn receive_copy_data(self) -> DualSession<CopyBothClientDone>
pub const fn receive_copy_data(self) -> DualSession<CopyBothClientDone>
Applies the dual receive_copy_data transition and enters CopyBothClientDone.
Sourcepub const fn receive_copy_done(self) -> DualSession<AwaitingReady>
pub const fn receive_copy_done(self) -> DualSession<AwaitingReady>
Applies the dual receive_copy_done transition and enters AwaitingReady.
Sourcepub const fn error(self) -> DualSession<Draining>
pub const fn error(self) -> DualSession<Draining>
Applies the dual error transition and enters Draining.
Source§impl DualSession<CopyBothServerDone>
impl DualSession<CopyBothServerDone>
Sourcepub const fn send_copy_data(self) -> DualSession<CopyBothServerDone>
pub const fn send_copy_data(self) -> DualSession<CopyBothServerDone>
Applies the dual send_copy_data transition and enters CopyBothServerDone.
Sourcepub const fn send_copy_done(self) -> DualSession<AwaitingReady>
pub const fn send_copy_done(self) -> DualSession<AwaitingReady>
Applies the dual send_copy_done transition and enters AwaitingReady.
Source§impl DualSession<Draining>
impl DualSession<Draining>
Sourcepub const fn continue_response(self) -> DualSession<Draining>
pub const fn continue_response(self) -> DualSession<Draining>
Applies the dual continue_response transition and enters Draining.
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<Resetting>
impl DualSession<Resetting>
Sourcepub const fn continue_reset(self) -> DualSession<Resetting>
pub const fn continue_reset(self) -> DualSession<Resetting>
Applies the dual continue_reset transition and enters Resetting.
Sourcepub const fn discard_complete(self) -> DualSession<ResetComplete>
pub const fn discard_complete(self) -> DualSession<ResetComplete>
Applies the dual discard_complete transition and enters ResetComplete.
Sourcepub const fn error(self) -> DualSession<Draining>
pub const fn error(self) -> DualSession<Draining>
Applies the dual error transition and enters Draining.
Source§impl DualSession<ResetComplete>
impl DualSession<ResetComplete>
Sourcepub const fn continue_reset(self) -> DualSession<ResetComplete>
pub const fn continue_reset(self) -> DualSession<ResetComplete>
Applies the dual continue_reset transition and enters ResetComplete.
Sourcepub const fn ready_clean(self) -> DualSession<Ready>
pub const fn ready_clean(self) -> DualSession<Ready>
Applies the dual ready_clean transition and enters Ready.
Sourcepub const fn ready_dirty(self) -> DualSession<Ready>
pub const fn ready_dirty(self) -> DualSession<Ready>
Applies the dual ready_dirty transition and enters Ready.
Sourcepub const fn error(self) -> DualSession<Draining>
pub const fn error(self) -> DualSession<Draining>
Applies the dual error transition and enters Draining.
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