pub enum SpawnReject {
Busy {
future: Pin<Box<dyn Future<Output = ()> + Send + 'static>>,
},
Rejected {
future: Pin<Box<dyn Future<Output = ()> + Send + 'static>>,
},
Orphaned,
}Expand description
Why TransactionTaskSpawner::spawn rejected or could not confirm ownership.
Variants§
Busy
Mailbox full before accept; caller still owns the future (drive or drop).
Rejected
Channel closed before accept; caller still owns the future.
Orphaned
try_send succeeded but TaskId reply was lost (e.g. shutdown drained the
request without spawning, or reply send failed). The future is not
returned — caller MUST NOT drive a substitute (Law 23 / 25). Fail closed.
Auto Trait Implementations§
impl !RefUnwindSafe for SpawnReject
impl !Sync for SpawnReject
impl !UnwindSafe for SpawnReject
impl Freeze for SpawnReject
impl Send for SpawnReject
impl Unpin for SpawnReject
impl UnsafeUnpin for SpawnReject
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