pub struct SandboxSession { /* private fields */ }Implementations§
Source§impl SandboxSession
impl SandboxSession
pub async fn create( spec: SandboxSpec, session_key: String, owner: bool, ) -> Result<Self>
pub fn container_name(&self) -> &str
pub fn workdir_display(&self) -> String
pub fn host_workdir(&self) -> Option<PathBuf>
pub fn image(&self) -> &str
pub fn spec(&self) -> &SandboxSpec
pub fn status_text(&self) -> String
pub fn worker_cli_args(&self) -> Vec<OsString>
pub fn resolve_path(&self, path: &str) -> Result<PathBuf>
pub async fn exec( &self, program: &str, args: &[String], stdin: Option<Vec<u8>>, ) -> Result<Output>
pub fn child_process_command( &self, program: &str, args: &[String], envs: &[(String, String)], ) -> Command
pub fn terminal_pty_command( &self, cwd: Option<&Path>, envs: &[(String, String)], ) -> (PtyCommandBuilder, String)
pub fn terminal_pipe_command( &self, cmd: &str, cwd: Option<&Path>, envs: &[(String, String)], ) -> (Command, String)
pub async fn terminal_pipe_kill(&self, pidfile: &str) -> Result<()>
Trait Implementations§
Source§impl Clone for SandboxSession
impl Clone for SandboxSession
Source§fn clone(&self) -> SandboxSession
fn clone(&self) -> SandboxSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SandboxSession
impl RefUnwindSafe for SandboxSession
impl Send for SandboxSession
impl Sync for SandboxSession
impl Unpin for SandboxSession
impl UnsafeUnpin for SandboxSession
impl UnwindSafe for SandboxSession
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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