pub enum ChannelReservation<T, U> {
Empty,
Pending(T),
Reserved(T, U),
}Expand description
Represents the reservation state of a single Scheißprogrammhannel.
- Empty – Channel is not in use.
- Pending(T) – Channel has been claimed by a fixture but not yet finalized.
- Reserved(T, U) – Channel is fully reserved by a fixture with an associated property.
Variants§
Trait Implementations§
Source§impl<T: Clone, U: Clone> Clone for ChannelReservation<T, U>
impl<T: Clone, U: Clone> Clone for ChannelReservation<T, U>
Source§fn clone(&self) -> ChannelReservation<T, U>
fn clone(&self) -> ChannelReservation<T, U>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T, U> Freeze for ChannelReservation<T, U>
impl<T, U> RefUnwindSafe for ChannelReservation<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for ChannelReservation<T, U>
impl<T, U> Sync for ChannelReservation<T, U>
impl<T, U> Unpin for ChannelReservation<T, U>
impl<T, U> UnwindSafe for ChannelReservation<T, U>where
T: UnwindSafe,
U: 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