Enum ecksport_core::state_mach::Action
source · pub enum Action {
SendFrame(FrameBody),
Ready(ReadyData),
Abort(GoodbyeData),
Exit(GoodbyeData),
SetRemoteAgent(String),
SetRemoteIdent(Identity),
HappyClose,
}Expand description
External action we should take after processing a message.
Variants§
SendFrame(FrameBody)
Sends a frame to the other side.
Ready(ReadyData)
Completes the handshake.
Abort(GoodbyeData)
Aborts the session, sending a goodbye message.
Exit(GoodbyeData)
Exits the handshake, with the received goodbye message.
SetRemoteAgent(String)
Sets the agent of the remote peer.
SetRemoteIdent(Identity)
Sets the identity of the remote peer.
HappyClose
Connection closed gracefully without event.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)