pub struct StreamHandle { /* private fields */ }
Expand description
A handle that can be usd to interact with the stream remotely.
Implementations§
Source§impl StreamHandle
impl StreamHandle
Sourcepub async fn wait_for_completion(self)
pub async fn wait_for_completion(self)
Wait for the stream download task to complete.
This method can be useful when using a ProcessStream
if you want
to ensure the subprocess has exited cleanly before continuing.
Trait Implementations§
Source§impl Clone for StreamHandle
impl Clone for StreamHandle
Source§fn clone(&self) -> StreamHandle
fn clone(&self) -> StreamHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for StreamHandle
impl RefUnwindSafe for StreamHandle
impl Send for StreamHandle
impl Sync for StreamHandle
impl Unpin for StreamHandle
impl UnwindSafe for StreamHandle
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