pub struct SessionMachine { /* private fields */ }Expand description
One logical session on a connected carrier. The preface nonce pair stays with the session: proof validation reads it during establishment and listing reconciliation derives its session key from it.
Implementations§
Source§impl SessionMachine
impl SessionMachine
pub fn id(&self) -> InterlaceId
pub fn state(&self) -> &SessionState
pub fn active_store_call(&self) -> Option<&StoreCall>
pub fn active_store_call_mut(&mut self) -> Option<&mut StoreCall>
pub fn is_terminating(&self) -> bool
pub fn protocol_phase(&self) -> MachineProtocolPhase
pub fn push_item(&mut self, item: IltpItem) -> Result<(), MachineError>
pub fn peer_eof(&mut self) -> Result<(), MachineError>
pub fn cancel(&mut self)
pub fn timeout(&mut self)
pub fn try_store_position_advanced( &mut self, boundary: &FixedPointWakeBoundary, position: StorePosition, ) -> StorePositionAdvance
Sourcepub fn accept_peer_output(&mut self) -> Result<Vec<IltpItem>, MachineError>
pub fn accept_peer_output(&mut self) -> Result<Vec<IltpItem>, MachineError>
Accept the retained peer output, handing its items to the writer.
pub fn submit_store_call(&mut self, id: u64) -> Result<(), MachineError>
pub fn poll(&mut self) -> MachinePoll<'_>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SessionMachine
impl RefUnwindSafe for SessionMachine
impl Send for SessionMachine
impl Sync for SessionMachine
impl Unpin for SessionMachine
impl UnsafeUnpin for SessionMachine
impl UnwindSafe for SessionMachine
Blanket Implementations§
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