pub struct LocalServerPool { /* private fields */ }Implementations§
Source§impl LocalServerPool
impl LocalServerPool
pub fn global() -> Arc<LocalServerPool> ⓘ
pub fn kinds() -> Value
pub async fn start( &self, session: &str, kind: &str, root: Option<&str>, cwd: Option<&str>, bin: Option<&str>, env: Option<&Value>, spa: bool, ) -> Result<InstanceInfo, String>
pub async fn stop(&self, session: &str, id: &str) -> Result<(), String>
pub fn list(&self, session: &str) -> Value
pub fn logs( &self, session: &str, id: &str, limit: usize, ) -> Result<Value, String>
pub async fn stop_session(&self, session: &str)
Auto Trait Implementations§
impl !Freeze for LocalServerPool
impl RefUnwindSafe for LocalServerPool
impl Send for LocalServerPool
impl Sync for LocalServerPool
impl Unpin for LocalServerPool
impl UnsafeUnpin for LocalServerPool
impl UnwindSafe for LocalServerPool
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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