pub struct Request { /* private fields */ }Expand description
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
impl Eq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)