pub struct RemoteExecutionContext {
pub target: RemoteExecutionTarget,
pub execution_mode: ExecutionMode,
pub runtime: Runtime,
}Fields§
§target: RemoteExecutionTarget§execution_mode: ExecutionMode§runtime: RuntimeImplementations§
Source§impl RemoteExecutionContext
impl RemoteExecutionContext
Sourcepub fn new(
endpoints: Vec<Endpoint>,
execution_mode: ExecutionMode,
runtime: Runtime,
) -> Self
pub fn new( endpoints: Vec<Endpoint>, execution_mode: ExecutionMode, runtime: Runtime, ) -> Self
Creates a new remote execution context with the given endpoint.
Sourcepub fn add_endpoint(&mut self, endpoint: Endpoint)
pub fn add_endpoint(&mut self, endpoint: Endpoint)
Adds an endpoint to the remote execution context if it doesn’t already exist.
pub fn endpoints(&self) -> &[Endpoint]
pub fn endpoints_mut(&mut self) -> &mut Vec<Endpoint>
Sourcepub unsafe fn set_endpoints(&mut self, endpoints: Vec<Endpoint>)
pub unsafe fn set_endpoints(&mut self, endpoints: Vec<Endpoint>)
Sets the endpoints for the remote execution context.
§Safety
The caller must ensure that the endpoints vector is not empty.
Trait Implementations§
Source§impl Clone for RemoteExecutionContext
impl Clone for RemoteExecutionContext
Auto Trait Implementations§
impl !RefUnwindSafe for RemoteExecutionContext
impl !Send for RemoteExecutionContext
impl !Sync for RemoteExecutionContext
impl !UnwindSafe for RemoteExecutionContext
impl Forget for RemoteExecutionContext
impl Freeze for RemoteExecutionContext
impl Move for RemoteExecutionContext
impl Unpin for RemoteExecutionContext
impl UnsafeUnpin for RemoteExecutionContext
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> 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 moreSource§impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
Source§fn is_subset_of(&self, other: &U) -> bool
fn is_subset_of(&self, other: &U) -> bool
Returns whether self is a subset of type