Enum netdevice_client::port_slab::Entry
source · pub enum Entry<'a, T> {
Vacant(VacantEntry<'a, T>),
Occupied(OccupiedEntry<'a, T>),
SaltMismatch(SaltMismatchEntry<'a, T>),
}
Expand description
An entry obtained from PortSlab::entry
.
Variants§
Vacant(VacantEntry<'a, T>)
Slot is vacant.
Occupied(OccupiedEntry<'a, T>)
Slot is occupied with a matching salt.
SaltMismatch(SaltMismatchEntry<'a, T>)
Slot is occupied with a mismatched salt.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Entry<'a, T>
impl<'a, T> RefUnwindSafe for Entry<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Entry<'a, T>where
T: Send,
impl<'a, T> Sync for Entry<'a, T>where
T: Sync,
impl<'a, T> Unpin for Entry<'a, T>
impl<'a, T> !UnwindSafe for Entry<'a, T>
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