pub struct InterceptionRequest {
pub origin: Participant,
pub message: JsonRpcMessage,
pub resolved_action_history: Vec<Vec<ResolvedActionRecord>>,
}Fields§
§origin: Participant§message: JsonRpcMessage§resolved_action_history: Vec<Vec<ResolvedActionRecord>>Implementations§
Source§impl InterceptionRequest
impl InterceptionRequest
pub fn has_resolved_actions(&self) -> bool
pub fn has_prior_actions(&self) -> bool
pub fn get_last_resolved_actions(&self) -> Option<&[ResolvedActionRecord]>
pub fn iter_resolved_action_rounds( &self, ) -> impl Iterator<Item = &[ResolvedActionRecord]>
pub fn phase(&self) -> Result<InterceptionPhase, ProtocolError>
Trait Implementations§
Source§impl Clone for InterceptionRequest
impl Clone for InterceptionRequest
Source§fn clone(&self) -> InterceptionRequest
fn clone(&self) -> InterceptionRequest
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 InterceptionRequest
impl Debug for InterceptionRequest
Source§impl<'de> Deserialize<'de> for InterceptionRequest
impl<'de> Deserialize<'de> for InterceptionRequest
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 InterceptionRequest
impl PartialEq for InterceptionRequest
Source§fn eq(&self, other: &InterceptionRequest) -> bool
fn eq(&self, other: &InterceptionRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InterceptionRequest
impl Serialize for InterceptionRequest
impl StructuralPartialEq for InterceptionRequest
Auto Trait Implementations§
impl Freeze for InterceptionRequest
impl RefUnwindSafe for InterceptionRequest
impl Send for InterceptionRequest
impl Sync for InterceptionRequest
impl Unpin for InterceptionRequest
impl UnsafeUnpin for InterceptionRequest
impl UnwindSafe for InterceptionRequest
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