Struct sn_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
impl SupportingInfo
[src]
impl SupportingInfo
[src]pub fn new(
info: SupportingInfoFor,
source_message: ProcessMsg,
correlation_id: MessageId,
id: MessageId
) -> Self
[src]
info: SupportingInfoFor,
source_message: ProcessMsg,
correlation_id: MessageId,
id: MessageId
) -> Self
pub fn source_message(&self) -> &ProcessMsg
[src]
pub fn source_message(&self) -> &ProcessMsg
[src]Get source message that originally triggered a ProcessingError. This should usually be replayed at source after applying supporting information
pub fn info(&self) -> &SupportingInfoFor
[src]
pub fn info(&self) -> &SupportingInfoFor
[src]Get the supporting information of this message
pub fn correlation_id(&self) -> MessageId
[src]
pub fn correlation_id(&self) -> MessageId
[src]MessageId of the ProcessingError that triggered this InformationUpdate
Trait Implementations
impl Clone for SupportingInfo
[src]
impl Clone for SupportingInfo
[src]fn clone(&self) -> SupportingInfo
[src]
fn clone(&self) -> SupportingInfo
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for SupportingInfo
[src]
impl Debug for SupportingInfo
[src]impl<'de> Deserialize<'de> for SupportingInfo
[src]
impl<'de> Deserialize<'de> for SupportingInfo
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<SupportingInfo> for SupportingInfo
[src]
impl PartialEq<SupportingInfo> for SupportingInfo
[src]fn eq(&self, other: &SupportingInfo) -> bool
[src]
fn eq(&self, other: &SupportingInfo) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &SupportingInfo) -> bool
[src]
fn ne(&self, other: &SupportingInfo) -> bool
[src]This method tests for !=
.
impl Serialize for SupportingInfo
[src]
impl Serialize for SupportingInfo
[src]impl Eq for SupportingInfo
[src]
impl StructuralEq for SupportingInfo
[src]
impl StructuralPartialEq for SupportingInfo
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,