pub enum Action<T> {
Call(T),
Response(T),
}
Expand description
An action that occurs as part of an operation on a shared object.
Variants§
Call(T)
A Call
indicates the beginning of an operation.
Response(T)
A Response
indicates the end of an operation.
Trait Implementations§
impl<T: Eq> Eq for Action<T>
impl<T> StructuralPartialEq for Action<T>
Auto Trait Implementations§
impl<T> Freeze for Action<T>where
T: Freeze,
impl<T> RefUnwindSafe for Action<T>where
T: RefUnwindSafe,
impl<T> Send for Action<T>where
T: Send,
impl<T> Sync for Action<T>where
T: Sync,
impl<T> Unpin for Action<T>where
T: Unpin,
impl<T> UnwindSafe for Action<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