pub struct RuntimeClient { /* private fields */ }Implementations§
Source§impl RuntimeClient
impl RuntimeClient
pub fn local_id(&self) -> LocalityId
pub fn spawn_on<A: Action>( &self, place: Place, action: A, ) -> Result<RemoteFuture<A::Output>, RuntimeError>
pub fn spawn_colocated<T: DistributedObject, A: Action>( &self, remote: &Remote<T>, action: A, ) -> Result<ColocatedFuture<A::Output>, RuntimeError>
pub fn spawn_preferred_colocated<T, A>(
&self,
remote: &Remote<T>,
fallback: PlacementFallback,
action: A,
) -> Result<PlacementFuture<A::Output>, RuntimeError>where
T: DistributedObject,
A: Action,
pub fn spawn_on_with<A: Action>( &self, place: Place, action: A, options: SpawnOptions, ) -> Result<RemoteFuture<A::Output>, RuntimeError>
pub fn create_at<T: DistributedObject>( &self, place: Place, state: T, ) -> Result<CreateFuture<T>, RuntimeError>
pub fn create_rooted_at<T: DistributedObject>( &self, place: Place, state: T, ) -> Result<RootedCreateFuture<T>, RuntimeError>
pub fn call_object_read<T, A>( &self, remote: &Remote<T>, action: A, ) -> Result<ObjectCallFuture<A::Output>, RuntimeError>
pub fn call_object_write<T, A>(
&self,
remote: &Remote<T>,
action: A,
) -> Result<ObjectCallFuture<A::Output>, RuntimeError>where
T: DistributedObject,
A: ObjectWriteAction<T>,
pub fn clear_object_resolver(&self)
Sourcepub fn migrate<T: MobileObject>(
&self,
remote: &Remote<T>,
destination: Place,
) -> Result<MigrationFuture<T>, RuntimeError>
pub fn migrate<T: MobileObject>( &self, remote: &Remote<T>, destination: Place, ) -> Result<MigrationFuture<T>, RuntimeError>
Starts explicit migration to an exact logical place.
§Errors
Returns typed placement, mobility, snapshot, resource, transport, rollback, post-commit, or shutdown errors.
pub fn transfer_object<T: DistributedObject>( &self, remote: &Remote<T>, destination: LocalityId, ) -> Result<TransferFuture<T>, RuntimeError>
pub fn import_transfer<T: DistributedObject>( &self, transfer: LeaseTransfer<T>, ) -> Result<Remote<T>, RuntimeError>
pub fn upgrade_object<T: DistributedObject>( &self, weak: &WeakRemote<T>, ) -> Result<UpgradeFuture<T>, RuntimeError>
Trait Implementations§
Source§impl Clone for RuntimeClient
impl Clone for RuntimeClient
Source§fn clone(&self) -> RuntimeClient
fn clone(&self) -> RuntimeClient
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 !RefUnwindSafe for RuntimeClient
impl !UnwindSafe for RuntimeClient
impl Freeze for RuntimeClient
impl Send for RuntimeClient
impl Sync for RuntimeClient
impl Unpin for RuntimeClient
impl UnsafeUnpin for RuntimeClient
Blanket Implementations§
§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
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,
§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
§impl<T> ConvUtil for T
impl<T> ConvUtil for T
§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<Src> TryFrom<Src> for Src
impl<Src> TryFrom<Src> for Src
§impl<Src, Dst> TryInto<Dst> for Srcwhere
Dst: TryFrom<Src>,
impl<Src, Dst> TryInto<Dst> for Srcwhere
Dst: TryFrom<Src>,
§impl<Src> ValueFrom<Src> for Src
impl<Src> ValueFrom<Src> for Src
§fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
Convert the given value into an exactly equivalent representation.