Struct agde::hash_check::Request
source · pub struct Request { /* private fields */ }
Expand description
A check to affirm the selected resources contain the same data.
For this to work, we assume the resulting hash is unique.
Eq implementation
If the receiver is the same, this is considered equal. Only one of these conversations should be communicated at once, therefore the filter doesn’t matter.
Implementations§
source§impl Request
impl Request
sourcepub fn matches(&self, resource: &str) -> bool
pub fn matches(&self, resource: &str) -> bool
Test if resource
is included in the requested hash check.
sourcepub fn unwinder<'a>(&self, manager: &'a Manager) -> ResponseHashRewinder<'a>
pub fn unwinder<'a>(&self, manager: &'a Manager) -> ResponseHashRewinder<'a>
Get an unwinder to unwind the resources you will add to the map before calling
crate::Manager::apply_hash_check_reply
.
If you start doing this now, before getting the response, keep in mind you have to check
Response::different_cutoff
. If that returns true
, you have to call
Response::unwinder
and start the process over again.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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