pub enum RemoveOutcome<T> {
PortNotPresent,
SaltMismatch(u8),
Removed(T),
}
Expand description
Observable outcomes from PortSlab::remove
.
Variants§
PortNotPresent
Requested port was not present.
SaltMismatch(u8)
There exists a port with the same ID present, but the stored salt doesn’t match. Contains the stored salt.
Removed(T)
Port was removed, contains the stored value.
Trait Implementations§
Source§impl<T: Debug> Debug for RemoveOutcome<T>
impl<T: Debug> Debug for RemoveOutcome<T>
Source§impl<T: PartialEq> PartialEq for RemoveOutcome<T>
impl<T: PartialEq> PartialEq for RemoveOutcome<T>
impl<T: Eq> Eq for RemoveOutcome<T>
impl<T> StructuralPartialEq for RemoveOutcome<T>
Auto Trait Implementations§
impl<T> Freeze for RemoveOutcome<T>where
T: Freeze,
impl<T> RefUnwindSafe for RemoveOutcome<T>where
T: RefUnwindSafe,
impl<T> Send for RemoveOutcome<T>where
T: Send,
impl<T> Sync for RemoveOutcome<T>where
T: Sync,
impl<T> Unpin for RemoveOutcome<T>where
T: Unpin,
impl<T> UnwindSafe for RemoveOutcome<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