Struct safe_network::messaging::client::SupportingInfo [−][src]
pub struct SupportingInfo { pub info: SupportingInfoFor, pub source_message: ProcessMsg, pub id: MessageId, pub correlation_id: MessageId, }
Expand description
Our response to a processing error. Anti entropy in that it updates the erroring node with any relevant information, and includes the original message, which should hereafter be actionable
Fields
info: SupportingInfoFor
Supporting information for the source_message process
source_message: ProcessMsg
The original message that triggered the error this update should be correcting
id: MessageId
MessageId
correlation_id: MessageId
Correlates to a ProcessingError
Implementations
pub fn new(
info: SupportingInfoFor,
source_message: ProcessMsg,
correlation_id: MessageId,
id: MessageId
) -> Self
pub fn new(
info: SupportingInfoFor,
source_message: ProcessMsg,
correlation_id: MessageId,
id: MessageId
) -> Self
Construct a wrapper for the given information and metadata.
Get source message that originally triggered a ProcessingError. This should usually be replayed at source after applying supporting information
Get the supporting information of this message
MessageId of the ProcessingError that triggered this InformationUpdate
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SupportingInfo
impl Send for SupportingInfo
impl Sync for SupportingInfo
impl Unpin for SupportingInfo
impl UnwindSafe for SupportingInfo
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V