pub enum RemoveResult<V> {
Removed(V),
StillPresent,
NotPresent,
}
Expand description
The result of removing an entry from a RefCountedHashMap
.
Variants§
Removed(V)
The reference count reached 0, so the entry was removed.
StillPresent
The reference count did not reach 0, so the entry still exists in the map.
NotPresent
The key was not in the map.
Trait Implementations§
Source§impl<V: Debug> Debug for RemoveResult<V>
impl<V: Debug> Debug for RemoveResult<V>
Source§impl<V: PartialEq> PartialEq for RemoveResult<V>
impl<V: PartialEq> PartialEq for RemoveResult<V>
impl<V: Eq> Eq for RemoveResult<V>
impl<V> StructuralPartialEq for RemoveResult<V>
Auto Trait Implementations§
impl<V> Freeze for RemoveResult<V>where
V: Freeze,
impl<V> RefUnwindSafe for RemoveResult<V>where
V: RefUnwindSafe,
impl<V> Send for RemoveResult<V>where
V: Send,
impl<V> Sync for RemoveResult<V>where
V: Sync,
impl<V> Unpin for RemoveResult<V>where
V: Unpin,
impl<V> UnwindSafe for RemoveResult<V>where
V: UnwindSafe,
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<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
Source§impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
Source§fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
Send a frame. Read more
Source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
Source§fn handle_timer(
&mut self,
bindings_ctx: &mut BC,
dispatch: Id,
timer: <BC as TimerBindingsTypes>::UniqueTimerId,
)
fn handle_timer( &mut self, bindings_ctx: &mut BC, dispatch: Id, timer: <BC as TimerBindingsTypes>::UniqueTimerId, )
Handle a timer firing. Read more