pub struct ActionEnvelope {
pub channel: Uri,
pub action: StateAction,
pub server_seq: u64,
pub origin: Option<ActionOrigin>,
pub rejection_reason: Option<String>,
}Expand description
Every action is wrapped in an ActionEnvelope.
The envelope identifies the channel the action belongs to (e.g.
ahp-root:// for root actions, the session URI for session actions, the
terminal URI for terminal actions). Individual action payloads carry only
fields that are intrinsic to the action; the channel comes from the
envelope so that any subscribable resource can route its actions uniformly.
Fields§
§channel: UriChannel URI this action belongs to.
action: StateAction§server_seq: u64§origin: Option<ActionOrigin>§rejection_reason: Option<String>Trait Implementations§
Source§impl Clone for ActionEnvelope
impl Clone for ActionEnvelope
Source§fn clone(&self) -> ActionEnvelope
fn clone(&self) -> ActionEnvelope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActionEnvelope
impl Debug for ActionEnvelope
Source§impl<'de> Deserialize<'de> for ActionEnvelope
impl<'de> Deserialize<'de> for ActionEnvelope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ActionEnvelope
impl PartialEq for ActionEnvelope
Source§fn eq(&self, other: &ActionEnvelope) -> bool
fn eq(&self, other: &ActionEnvelope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ActionEnvelope
impl Serialize for ActionEnvelope
impl StructuralPartialEq for ActionEnvelope
Auto Trait Implementations§
impl Freeze for ActionEnvelope
impl RefUnwindSafe for ActionEnvelope
impl Send for ActionEnvelope
impl Sync for ActionEnvelope
impl Unpin for ActionEnvelope
impl UnsafeUnpin for ActionEnvelope
impl UnwindSafe for ActionEnvelope
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