pub enum FakeReply {
Complete(String),
Fail(String),
Cancelled,
BudgetExhausted(String),
Reject(String),
Never,
}Expand description
How the fake answers a matched spawn.
Variants§
Complete(String)
Resolve with this full result text.
Fail(String)
Resolve as a failed subagent.
Cancelled
Resolve as cancelled.
BudgetExhausted(String)
Resolve as budget-exhausted mid-flight.
Reject(String)
Refuse admission: spawn_task returns DriverError::Rejected.
Never
Admit the task but never complete it (for cancellation tests). The completion sender is held so the channel stays open.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FakeReply
impl RefUnwindSafe for FakeReply
impl Send for FakeReply
impl Sync for FakeReply
impl Unpin for FakeReply
impl UnsafeUnpin for FakeReply
impl UnwindSafe for FakeReply
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