#[non_exhaustive]pub struct ReclaimToken {
pub grant: ReclaimGrant,
}Expand description
Opaque cookie returned by the reclaim scanner; consumed by
claim_from_reclaim to mint a resumed Handle.
Wraps ReclaimGrant today (the scanner’s existing product).
Kept as a newtype so trait signatures name the reclaim-bound role
explicitly and so the wrapped shape can evolve without breaking the
trait.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.grant: ReclaimGrantImplementations§
Source§impl ReclaimToken
impl ReclaimToken
pub fn new(grant: ReclaimGrant) -> Self
Trait Implementations§
Source§impl Clone for ReclaimToken
impl Clone for ReclaimToken
Source§fn clone(&self) -> ReclaimToken
fn clone(&self) -> ReclaimToken
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReclaimToken
impl Debug for ReclaimToken
Source§impl PartialEq for ReclaimToken
impl PartialEq for ReclaimToken
impl Eq for ReclaimToken
impl StructuralPartialEq for ReclaimToken
Auto Trait Implementations§
impl Freeze for ReclaimToken
impl RefUnwindSafe for ReclaimToken
impl Send for ReclaimToken
impl Sync for ReclaimToken
impl Unpin for ReclaimToken
impl UnsafeUnpin for ReclaimToken
impl UnwindSafe for ReclaimToken
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