Skip to main content

LaunchedLocalhostBinary

Struct LaunchedLocalhostBinary 

Source
pub struct LaunchedLocalhostBinary { /* private fields */ }

Trait Implementations§

Source§

impl Drop for LaunchedLocalhostBinary

Available on Unix only.
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
Source§

impl LaunchedBinary for LaunchedLocalhostBinary

Source§

fn stdin(&self) -> UnboundedSender<String>

Source§

fn deploy_stdout(&self) -> Receiver<String> ⓘ

Provides a oneshot channel to handshake with the binary, with the guarantee that as long as deploy is holding on to a handle, none of the messages will also be broadcast to the user-facing LaunchedBinary::stdout channel.
Source§

fn stdout(&self) -> UnboundedReceiver<String>

Source§

fn stderr(&self) -> UnboundedReceiver<String>

Source§

fn stdout_filter(&self, prefix: String) -> UnboundedReceiver<String>

Source§

fn stderr_filter(&self, prefix: String) -> UnboundedReceiver<String>

Source§

fn tracing_results(&self) -> Option<&TracingResults>

Source§

fn exit_code(&self) -> Option<i32>

Source§

fn wait<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<i32>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Wait for the process to stop on its own. Returns the exit code.
Source§

fn stop<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

If the process is still running, force stop it. Then run post-run tasks.

Auto Trait Implementations§

§

impl !Freeze for LaunchedLocalhostBinary

§

impl !RefUnwindSafe for LaunchedLocalhostBinary

§

impl !UnwindSafe for LaunchedLocalhostBinary

§

impl Forget for LaunchedLocalhostBinary

§

impl Move for LaunchedLocalhostBinary

§

impl Send for LaunchedLocalhostBinary
where Mutex<Child>: Send, RawVecInner: Send, &'static str: Send, String: Send, Mutex<Option<TracingDataLocal>>: Send, OnceLock<TracingResults>: Send, Arc<Chan<String, Semaphore>>: Send, Weak<Mutex<PriorityBroadcastInternal>>: Send,

§

impl Sync for LaunchedLocalhostBinary
where Mutex<Child>: Sync, RawVecInner: Sync, String: Sync, Mutex<Option<TracingDataLocal>>: Sync, OnceLock<TracingResults>: Sync, Arc<Chan<String, Semaphore>>: Sync, Weak<Mutex<PriorityBroadcastInternal>>: Sync,

§

impl Unpin for LaunchedLocalhostBinary
where Align4<u32>: Unpin, Align1<u8>: Unpin, *const Waiter is !null: Unpin, Align8<usize>: Unpin, Async<ChildStdin>: Unpin, Async<ChildStdout>: Unpin, Async<ChildStderr>: Unpin, Arc<Mutex<ChildGuard>>: Unpin, *const u8 is !null: Unpin, &'static str: Unpin, String: Unpin, Box<Path>: Unpin, I32NotAllOnes: Unpin, Arc<Chan<String, Semaphore>>: Unpin, *const ArcInner<Mutex<PriorityBroadcastInternal>> is !null: Unpin,

§

impl UnsafeUnpin for LaunchedLocalhostBinary
where PhantomData<Mutex<Waitlist>>: UnsafeUnpin, Align1<u8>: UnsafeUnpin, *const Waiter is !null: UnsafeUnpin, Align8<usize>: UnsafeUnpin, *const ArcInner<Source> is !null: UnsafeUnpin, PhantomData<ArcInner<Source>>: UnsafeUnpin, I32NotAllOnes: UnsafeUnpin, *const ArcInner<Mutex<ChildGuard>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<ChildGuard>>>: UnsafeUnpin, *const u8 is !null: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, PhantomData<String>: UnsafeUnpin, &'static str: UnsafeUnpin, String: UnsafeUnpin, Align4<u32>: UnsafeUnpin, *const Path is !null: UnsafeUnpin, PhantomData<Path>: UnsafeUnpin, PhantomData<TracingResults>: UnsafeUnpin, *const ArcInner<Chan<String, Semaphore>> is !null: UnsafeUnpin, PhantomData<ArcInner<Chan<String, Semaphore>>>: UnsafeUnpin, *const ArcInner<Mutex<PriorityBroadcastInternal>> is !null: 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Same for T

Source§

type Output = T

Should always be Self
§

impl<T> ToSinkBuild for T

§

fn iter_to_sink_build(self) -> SendIterBuild<Self>
where Self: Sized + Iterator,

Starts a [SinkBuild] adaptor chain to send all items from self as an Iterator.
§

fn stream_to_sink_build(self) -> SendStreamBuild<Self>
where Self: Sized + Stream,

Starts a [SinkBuild] adaptor chain to send all items from self as a [Stream].
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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more