Struct SpawnGuard
pub struct SpawnGuard { /* private fields */ }Implementations§
§impl SpawnGuard
impl SpawnGuard
pub fn new(commands: impl IntoIterator<Item = impl Into<String>>) -> SpawnGuard
pub fn with_extra( self, commands: impl IntoIterator<Item = impl Into<String>>, ) -> SpawnGuard
pub fn validate_command(&self, command: &str) -> Result<(), SpawnGuardError>
Trait Implementations§
§impl Clone for SpawnGuard
impl Clone for SpawnGuard
§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 more§impl Debug for SpawnGuard
impl Debug for SpawnGuard
§impl Default for SpawnGuard
impl Default for SpawnGuard
§fn default() -> SpawnGuard
fn default() -> SpawnGuard
Returns the “default value” for a type. Read more
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