pub struct SessionState {
pub protocol: String,
pub state: Box<dyn ProtocolStateMachine>,
pub role: String,
pub partner: SenderHandle,
}Expand description
State of an active protocol session.
Fields§
§protocol: StringThe protocol this session is following.
state: Box<dyn ProtocolStateMachine>The current state of the protocol state machine.
role: StringThe role this agent plays in the protocol.
partner: SenderHandleHandle to send messages to the session partner.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SessionState
impl !RefUnwindSafe for SessionState
impl Send for SessionState
impl Sync for SessionState
impl Unpin for SessionState
impl UnsafeUnpin for SessionState
impl !UnwindSafe for SessionState
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