pub enum Decision<T> {
Accept {
reply: Reply,
res: T,
},
Reject {
reply: Reply,
},
Kill {
reply: Option<Reply>,
res: Result<(), Error>,
},
}
Variants§
Trait Implementations§
Source§impl<T> From<SerializableDecision<T>> for Decision<T>
impl<T> From<SerializableDecision<T>> for Decision<T>
Source§fn from(d: SerializableDecision<T>) -> Decision<T>
fn from(d: SerializableDecision<T>) -> Decision<T>
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Decision<T>where
T: Freeze,
impl<T> !RefUnwindSafe for Decision<T>
impl<T> Send for Decision<T>where
T: Send,
impl<T> Sync for Decision<T>where
T: Sync,
impl<T> Unpin for Decision<T>where
T: Unpin,
impl<T> !UnwindSafe for Decision<T>
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