pub struct SendToken {
pub identity_id: LocalIdentityId,
pub receipt: SendReceipt,
}Expand description
Identity-scoped send token.
SendReceipt is only unique within a LocalIdentityId slot (it’s allocated
from a per-identity next_receipt counter). SendToken combines the two into a
single value that is unique across all identity slots, suitable for use as a
dispatcher key, ticket identifier, or cancellation handle.
Fields§
§identity_id: LocalIdentityId§receipt: SendReceiptImplementations§
Source§impl SendToken
impl SendToken
Sourcepub fn new(identity_id: LocalIdentityId, receipt: SendReceipt) -> Self
pub fn new(identity_id: LocalIdentityId, receipt: SendReceipt) -> Self
Create a new send token from an identity slot and receipt.
Trait Implementations§
impl Copy for SendToken
impl Eq for SendToken
impl StructuralPartialEq for SendToken
Auto Trait Implementations§
impl Freeze for SendToken
impl RefUnwindSafe for SendToken
impl Send for SendToken
impl Sync for SendToken
impl Unpin for SendToken
impl UnwindSafe for SendToken
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)