pub struct SpawnGuard { /* private fields */ }Implementations§
Source§impl SpawnGuard
impl SpawnGuard
pub fn new(commands: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn with_extra( self, commands: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn validate_command(&self, command: &str) -> Result<(), SpawnGuardError>
Trait Implementations§
Source§impl Clone for SpawnGuard
impl Clone for SpawnGuard
Source§fn clone(&self) -> SpawnGuard
fn clone(&self) -> SpawnGuard
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpawnGuard
impl Debug for SpawnGuard
Auto Trait Implementations§
impl Freeze for SpawnGuard
impl RefUnwindSafe for SpawnGuard
impl Send for SpawnGuard
impl Sync for SpawnGuard
impl Unpin for SpawnGuard
impl UnsafeUnpin for SpawnGuard
impl UnwindSafe for SpawnGuard
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