pub struct Remote<T: DistributedObject> { /* private fields */ }Implementations§
Source§impl<T: DistributedObject> Remote<T>
impl<T: DistributedObject> Remote<T>
pub const fn object_id(&self) -> ObjectId
pub fn observed_location(&self) -> ObjectLocation
Sourcepub fn release(self)
pub fn release(self)
Releases this strong handle. The locality lease is released when this is the last local clone.
pub fn call_read<A: ObjectReadAction<T>>(
&self,
action: A,
) -> Result<ObjectCallFuture<A::Output>, RuntimeError>where
T: Sync,
pub fn call_write<A: ObjectWriteAction<T>>( &self, action: A, ) -> Result<ObjectCallFuture<A::Output>, RuntimeError>
pub fn transfer_to( &self, destination: LocalityId, ) -> Result<TransferFuture<T>, RuntimeError>
Sourcepub fn migrate_to(
&self,
destination: Place,
) -> Result<MigrationFuture<T>, RuntimeError>where
T: MobileObject,
pub fn migrate_to(
&self,
destination: Place,
) -> Result<MigrationFuture<T>, RuntimeError>where
T: MobileObject,
Starts explicit migration to an exact logical place.
§Errors
Returns typed placement, mobility, snapshot, resource, transport, rollback, post-commit, or shutdown errors.
pub fn downgrade(&self) -> WeakRemote<T>
Trait Implementations§
Source§impl<T: DistributedObject> Clone for Remote<T>
impl<T: DistributedObject> Clone for Remote<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Remote<T>
impl<T> !UnwindSafe for Remote<T>
impl<T> Freeze for Remote<T>
impl<T> Send for Remote<T>
impl<T> Sync for Remote<T>where
T: Sync,
impl<T> Unpin for Remote<T>where
T: Unpin,
impl<T> UnsafeUnpin for Remote<T>
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.