pub struct UpgradeOfferId { /* private fields */ }Expand description
Identity within one caller-scoped choice-session namespace.
Only a session can issue tokens. Copying a token/snapshot does not reserve a point or make it reusable after acceptance, abandonment or reset. Namespaces are caller-assigned nonzero values, not global uniqueness or security: two sessions created with the same namespace can issue equal tokens. Use a fresh namespace whenever recreating a session whose old callbacks may survive.
Implementations§
Trait Implementations§
Source§impl Clone for UpgradeOfferId
impl Clone for UpgradeOfferId
Source§fn clone(&self) -> UpgradeOfferId
fn clone(&self) -> UpgradeOfferId
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 UpgradeOfferId
impl Debug for UpgradeOfferId
Source§impl PartialEq for UpgradeOfferId
impl PartialEq for UpgradeOfferId
impl Copy for UpgradeOfferId
impl Eq for UpgradeOfferId
impl StructuralPartialEq for UpgradeOfferId
Auto Trait Implementations§
impl Freeze for UpgradeOfferId
impl RefUnwindSafe for UpgradeOfferId
impl Send for UpgradeOfferId
impl Sync for UpgradeOfferId
impl Unpin for UpgradeOfferId
impl UnwindSafe for UpgradeOfferId
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