pub struct BackgroundProcessManager { /* private fields */ }Expand description
Manager for background terminal processes
Implementations§
Source§impl BackgroundProcessManager
impl BackgroundProcessManager
Sourcepub fn register(&self, shell_id: String, terminal: BackgroundTerminal)
pub fn register(&self, shell_id: String, terminal: BackgroundTerminal)
Register a new background terminal
Sourcepub fn has_terminal(&self, shell_id: &str) -> bool
pub fn has_terminal(&self, shell_id: &str) -> bool
Check if a terminal exists
Sourcepub fn get(&self, shell_id: &str) -> Option<Ref<'_, String, BackgroundTerminal>>
pub fn get(&self, shell_id: &str) -> Option<Ref<'_, String, BackgroundTerminal>>
Get terminal by ID (returns reference for reading)
Sourcepub fn remove(&self, shell_id: &str) -> Option<(String, BackgroundTerminal)>
pub fn remove(&self, shell_id: &str) -> Option<(String, BackgroundTerminal)>
Remove terminal by ID
Sourcepub async fn finish_terminal(&self, shell_id: &str, status: TerminalExitStatus)
pub async fn finish_terminal(&self, shell_id: &str, status: TerminalExitStatus)
Update a terminal to finished state
Trait Implementations§
Source§impl Debug for BackgroundProcessManager
impl Debug for BackgroundProcessManager
Source§impl Default for BackgroundProcessManager
impl Default for BackgroundProcessManager
Source§fn default() -> BackgroundProcessManager
fn default() -> BackgroundProcessManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BackgroundProcessManager
impl !RefUnwindSafe for BackgroundProcessManager
impl Send for BackgroundProcessManager
impl Sync for BackgroundProcessManager
impl Unpin for BackgroundProcessManager
impl !UnwindSafe for BackgroundProcessManager
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
fn into_option(self) -> Option<T>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request