Skip to main content

AsyncCommand

Struct AsyncCommand 

Source
pub struct AsyncCommand { /* private fields */ }
Expand description

A nonblocking bounded command which cancels its process group when dropped.

Implementations§

Source§

impl AsyncCommand

Source

pub fn try_stderr(&mut self) -> Option<StderrObservation>

Poll the optional stderr queue without blocking. On overflow, pending copies are dropped and the queue stays disabled.

Source

pub fn try_wait(&mut self) -> Option<Result<Output, Error>>

Trait Implementations§

Source§

impl Drop for AsyncCommand

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for AsyncCommand

§

impl !Sync for AsyncCommand

§

impl !UnwindSafe for AsyncCommand

§

impl Forget for AsyncCommand

§

impl Freeze for AsyncCommand
where *const ArcInner<Atomic<bool>> is !null: Freeze, PhantomData<ArcInner<Atomic<bool>>>: Freeze, *mut Counter<Channel<Result<Output, Error>>>: Freeze, *mut Counter<Channel<Result<Output, Error>>>: Freeze, *mut Counter<Channel<Result<Output, Error>>>: Freeze, *const ArcInner<Inner> is !null: Freeze, PhantomData<ArcInner<Inner>>: Freeze, *const ArcInner<Packet<'static, ()>> is !null: Freeze, PhantomData<ArcInner<Packet<'static, ()>>>: Freeze, *mut Counter<Channel<Vec<u8>>>: Freeze, *mut Counter<Channel<Vec<u8>>>: Freeze, *mut Counter<Channel<Vec<u8>>>: Freeze,

§

impl Move for AsyncCommand

§

impl Send for AsyncCommand

§

impl Unpin for AsyncCommand
where Arc<Atomic<bool>>: Unpin, *mut Counter<Channel<Result<Output, Error>>>: Unpin, *mut Counter<Channel<Result<Output, Error>>>: Unpin, *mut Counter<Channel<Result<Output, Error>>>: Unpin, Arc<Inner, System>: Unpin, Arc<Packet<'static, ()>>: Unpin, *mut Counter<Channel<Vec<u8>>>: Unpin, *mut Counter<Channel<Vec<u8>>>: Unpin, *mut Counter<Channel<Vec<u8>>>: Unpin,

§

impl UnsafeUnpin for AsyncCommand
where *const ArcInner<Atomic<bool>> is !null: UnsafeUnpin, PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin, *mut Counter<Channel<Result<Output, Error>>>: UnsafeUnpin, *mut Counter<Channel<Result<Output, Error>>>: UnsafeUnpin, *mut Counter<Channel<Result<Output, Error>>>: UnsafeUnpin, *const ArcInner<Inner> is !null: UnsafeUnpin, PhantomData<ArcInner<Inner>>: UnsafeUnpin, *const ArcInner<Packet<'static, ()>> is !null: UnsafeUnpin, PhantomData<ArcInner<Packet<'static, ()>>>: UnsafeUnpin, *mut Counter<Channel<Vec<u8>>>: UnsafeUnpin, *mut Counter<Channel<Vec<u8>>>: UnsafeUnpin, *mut Counter<Channel<Vec<u8>>>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.