pub struct Executable { /* private fields */ }Implementations§
Source§impl Executable
impl Executable
pub fn at(path: impl AsRef<Path>) -> Result<Self, ExecutableError>
pub fn sha256(&self) -> [u8; 32]
pub fn declaration(&self) -> &Declaration
pub fn path(&self) -> &Path
pub fn arguments(&self) -> &[OsString]
pub fn working_directory(&self) -> Option<&Path>
pub fn environment(&self) -> &[(OsString, OsString)]
pub fn argument(self, argument: impl Into<OsString>) -> Self
pub fn directory(self, path: impl Into<PathBuf>) -> Self
pub fn variable( self, name: impl Into<OsString>, value: impl Into<OsString>, ) -> Self
Trait Implementations§
Source§impl Attach for Executable
impl Attach for Executable
type Error = Error
fn owner(&self) -> &str
fn publications(&self) -> Vec<StreamDeclaration>
fn observers(&self) -> Vec<Declaration>
fn operations(&self) -> Result<Vec<OperationDefinition>>
fn operation_contracts(&self) -> Result<Option<Vec<Contract>>>
fn required_contracts(&self) -> Result<Option<Vec<Required>>>
fn sdk_lifecycle(&self) -> Result<Option<[Descriptor; 2]>>
fn observe_contract(&self) -> Result<Option<Contract>>
fn listener_declarations(&self) -> Result<Option<Vec<Definition>>>
async fn attach(&self) -> Result<Attached, Error>
Source§impl Clone for Executable
impl Clone for Executable
Auto Trait Implementations§
impl Freeze for Executable
impl RefUnwindSafe for Executable
impl Send for Executable
impl Sync for Executable
impl Unpin for Executable
impl UnsafeUnpin for Executable
impl UnwindSafe for Executable
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