pub enum UpsertOutcome {
Updated,
Inserted,
Evicted,
Ignored,
}Expand description
upsert が実際に行った操作。呼び出し側のログ出力の出し分けに使う。
Variants§
Updated
既存エントリの MAC/age を更新した。
Inserted
空きスロットへ新規登録した。
Evicted
満杯だったため最も古いエントリを追い出して登録した。
Ignored
登録対象外のアドレス(0.0.0.0 / 255.255.255.255)だったため何もしなかった。
Trait Implementations§
Source§impl Clone for UpsertOutcome
impl Clone for UpsertOutcome
Source§fn clone(&self) -> UpsertOutcome
fn clone(&self) -> UpsertOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UpsertOutcome
Source§impl Debug for UpsertOutcome
impl Debug for UpsertOutcome
impl Eq for UpsertOutcome
Source§impl PartialEq for UpsertOutcome
impl PartialEq for UpsertOutcome
Source§fn eq(&self, other: &UpsertOutcome) -> bool
fn eq(&self, other: &UpsertOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpsertOutcome
Auto Trait Implementations§
impl Freeze for UpsertOutcome
impl RefUnwindSafe for UpsertOutcome
impl Send for UpsertOutcome
impl Sync for UpsertOutcome
impl Unpin for UpsertOutcome
impl UnsafeUnpin for UpsertOutcome
impl UnwindSafe for UpsertOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.