Enum BondUpsert
pub enum BondUpsert {
Unchanged,
Updated,
Inserted {
evicted: Option<StoredBond>,
},
}Expand description
Outcome of upsert_bond.
Variants§
Unchanged
The bond’s content and position were already current.
Updated
An existing bond’s content and/or MRU position changed.
Inserted
A new bond was appended, evicting the LRU entry first if the list
was already at MAX_BONDS.
Fields
§
evicted: Option<StoredBond>Trait Implementations§
§impl Clone for BondUpsert
impl Clone for BondUpsert
§fn clone(&self) -> BondUpsert
fn clone(&self) -> BondUpsert
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for BondUpsert
impl Debug for BondUpsert
§impl PartialEq for BondUpsert
impl PartialEq for BondUpsert
impl Copy for BondUpsert
impl Eq for BondUpsert
impl StructuralPartialEq for BondUpsert
Auto Trait Implementations§
impl Freeze for BondUpsert
impl RefUnwindSafe for BondUpsert
impl Send for BondUpsert
impl Sync for BondUpsert
impl Unpin for BondUpsert
impl UnwindSafe for BondUpsert
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)