pub struct RepatriationToken { /* private fields */ }Expand description
A token that proves a resource has been returned to domestic jurisdiction.
This token is required to call Sovereign::repatriate. It can only be constructed
by trusted system components (like the lease manager) that can guarantee the
resource is safe to reclaim.
Implementations§
Source§impl RepatriationToken
impl RepatriationToken
Sourcepub unsafe fn new(holder_id: u128) -> Self
pub unsafe fn new(holder_id: u128) -> Self
Creates a new repatriation token.
§Safety
This function is unsafe because creating a token allows the holder to repatriate a sovereign resource. The caller must guarantee that the resource is indeed back in domestic jurisdiction and no longer accessed remotely.
Auto Trait Implementations§
impl Freeze for RepatriationToken
impl RefUnwindSafe for RepatriationToken
impl Send for RepatriationToken
impl Sync for RepatriationToken
impl Unpin for RepatriationToken
impl UnwindSafe for RepatriationToken
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