pub struct ExtensionHostManager { /* private fields */ }Implementations§
Source§impl ExtensionHostManager
impl ExtensionHostManager
pub fn new(extension_id: String) -> Self
Sourcepub fn state(&self) -> ExtensionHostState
pub fn state(&self) -> ExtensionHostState
Returns the current state of the extension host process. Callers should use this instead of the removed is_running()/is_healthy() methods.
Sourcepub fn check_and_update_state(&mut self)
pub fn check_and_update_state(&mut self)
Checks if the child process is still alive and updates state accordingly. Call this before making decisions based on host state. This is the ONLY place where Running -> Unhealthy transition happens passively.
pub fn start( &mut self, extension_host_path: &str, outgoing_socket: &str, incoming_socket: &str, ) -> Result<(), String>
pub async fn restart_if_needed( &mut self, extension_host_path: &str, outgoing_socket: &str, incoming_socket: &str, ) -> Result<(), String>
pub fn stop(&mut self) -> Result<(), String>
pub fn shutdown(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExtensionHostManager
impl RefUnwindSafe for ExtensionHostManager
impl Send for ExtensionHostManager
impl Sync for ExtensionHostManager
impl Unpin for ExtensionHostManager
impl UnsafeUnpin for ExtensionHostManager
impl UnwindSafe for ExtensionHostManager
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more