pub struct RustRuntimeServices<'a> { /* private fields */ }
Implementations§
Source§impl RustRuntimeServices<'_>
impl RustRuntimeServices<'_>
Sourcepub fn backend(&self) -> FlowBackend
pub fn backend(&self) -> FlowBackend
What backend the flow is being running on (e.g: locally, ADO, GitHub, etc…)
Sourcepub fn platform(&self) -> FlowPlatform
pub fn platform(&self) -> FlowPlatform
What platform the flow is being running on (e.g: windows, linux, etc…).
pub fn write<T>(&mut self, var: ClaimedWriteVar<T>, val: &T)where
T: Serialize + DeserializeOwned,
pub fn write_all<T>(
&mut self,
vars: impl IntoIterator<Item = ClaimedWriteVar<T>>,
val: &T,
)where
T: Serialize + DeserializeOwned,
pub fn read<T>(&mut self, var: ClaimedReadVar<T>) -> Twhere
T: Serialize + DeserializeOwned,
Sourcepub fn dangerous_gh_set_global_env_var(
&mut self,
var: String,
gh_env_var: String,
) -> Result<()>
pub fn dangerous_gh_set_global_env_var( &mut self, var: String, gh_env_var: String, ) -> Result<()>
DANGEROUS: Set the value of Global Environment Variable (GitHub Actions only).
It is up to the caller to ensure that the variable does not get unintentionally overwritten or used.
This method should be used rarely and with great care!
Auto Trait Implementations§
impl<'a> Freeze for RustRuntimeServices<'a>
impl<'a> !RefUnwindSafe for RustRuntimeServices<'a>
impl<'a> !Send for RustRuntimeServices<'a>
impl<'a> !Sync for RustRuntimeServices<'a>
impl<'a> Unpin for RustRuntimeServices<'a>
impl<'a> !UnwindSafe for RustRuntimeServices<'a>
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