Enum futures_bounded::PushError
source · pub enum PushError<T> {
BeyondCapacity(T),
Replaced(T),
}
Expand description
Error of a future pushing
Variants§
BeyondCapacity(T)
The length of the set is equal to the capacity
Replaced(T)
The map already contained an item with this key.
The old item is returned.
Trait Implementations§
source§impl<T: PartialEq> PartialEq for PushError<T>
impl<T: PartialEq> PartialEq for PushError<T>
impl<T> StructuralPartialEq for PushError<T>
Auto Trait Implementations§
impl<T> Freeze for PushError<T>where
T: Freeze,
impl<T> RefUnwindSafe for PushError<T>where
T: RefUnwindSafe,
impl<T> Send for PushError<T>where
T: Send,
impl<T> Sync for PushError<T>where
T: Sync,
impl<T> Unpin for PushError<T>where
T: Unpin,
impl<T> UnwindSafe for PushError<T>where
T: 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