pub enum LookupRequestStatus {
Unprovided,
Provided {
since: Slot,
},
Unrequested {
provided_since: Slot,
unrequested_since: Slot,
},
Rerequested {
provided_since: Slot,
unrequested_at: Slot,
rerequested_since: Slot,
},
}Expand description
The status of a lookup request.
Variants§
Unprovided
The request has never had its preimage provided; corresponds to an empty GP array.
Provided
The requested preimage is provided; corresponds to a single-item GP array.
Unrequested
The request was provided and has since been unrequested; corresponds to a two-item GP array.
Fields
Rerequested
The request was provided, was since unrequested and is now requested again. Corresponds to a three-item GP array.
Implementations§
Source§impl LookupRequestStatus
impl LookupRequestStatus
Sourcepub fn forget_implication(&self, now: Slot) -> ForgetImplication
pub fn forget_implication(&self, now: Slot) -> ForgetImplication
Return the implication of calling forget on the current state of the preimage request
given the current timeslot is now.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LookupRequestStatus
impl RefUnwindSafe for LookupRequestStatus
impl Send for LookupRequestStatus
impl Sync for LookupRequestStatus
impl Unpin for LookupRequestStatus
impl UnwindSafe for LookupRequestStatus
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