pub enum SpawnPermit {
Granted(Box<dyn Any + Send>),
Contended,
}Expand description
Whether this process may start a host now.
Variants§
Granted(Box<dyn Any + Send>)
This process holds the cross-process claim until the value is dropped.
Contended
Another process is starting a host: wait for it to publish.
Auto Trait Implementations§
impl !RefUnwindSafe for SpawnPermit
impl !Sync for SpawnPermit
impl !UnwindSafe for SpawnPermit
impl Freeze for SpawnPermit
impl Send for SpawnPermit
impl Unpin for SpawnPermit
impl UnsafeUnpin for SpawnPermit
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