Skip to main content

BoundedClusterHandle

Struct BoundedClusterHandle 

Source
pub struct BoundedClusterHandle<R: Reactor = TokioReactor, N: Network = TokioNetwork, F: FileSystem = TokioFileSystem> { /* private fields */ }

Implementations§

Source§

impl<R: Reactor + Clone, N: Network + Clone, F: FileSystem + Clone> BoundedClusterHandle<R, N, F>

Source

pub fn transport(&self) -> &BoundedTransportHandle<R, N>

Source

pub fn peers(&self) -> &[PeerSpec]

Source

pub fn declared_actors(&self) -> &[DeclaredRemoteActor]

Source

pub fn roles(&self) -> &[BoundedClusterRole]

Source

pub fn add_peer(&mut self, peer: PeerSpec) -> Result<(), ClusterError>

Source

pub fn declare_remote_actor( &mut self, owner: EngineId, path: ActorPath, ) -> Result<(), ClusterError>

Source

pub fn undeclare_remote_actor( &mut self, path: &ActorPath, ) -> Result<(), ClusterError>

Source

pub fn can_route(&self, path: &ActorPath) -> bool

Source

pub async fn spawn_remote_on_role<M>( &self, role: &str, spec: RemoteSpawnSpec, ) -> Result<Addr<M>, RemoteSpawnError>
where M: RemoteMessage, M::Response: Serialize + for<'de> Deserialize<'de> + Send + 'static, R: Send + Sync,

Source

pub async fn spawn_remote<M>( &self, target: EngineId, spec: RemoteSpawnSpec, ) -> Result<Addr<M>, RemoteSpawnError>
where M: RemoteMessage, M::Response: Serialize + for<'de> Deserialize<'de> + Send + 'static, R: Send + Sync,

Trait Implementations§

Source§

impl<R: Clone + Reactor, N: Clone + Network, F: Clone + FileSystem> Clone for BoundedClusterHandle<R, N, F>

Source§

fn clone(&self) -> BoundedClusterHandle<R, N, F>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl<R, N, F> Freeze for BoundedClusterHandle<R, N, F>
where R: Freeze, N: Freeze, F: Freeze,

§

impl<R = TokioReactor, N = TokioNetwork, F = TokioFileSystem> !RefUnwindSafe for BoundedClusterHandle<R, N, F>

§

impl<R, N, F> Send for BoundedClusterHandle<R, N, F>

§

impl<R, N, F> Sync for BoundedClusterHandle<R, N, F>

§

impl<R, N, F> Unpin for BoundedClusterHandle<R, N, F>
where R: Unpin, N: Unpin, F: Unpin,

§

impl<R, N, F> UnsafeUnpin for BoundedClusterHandle<R, N, F>

§

impl<R = TokioReactor, N = TokioNetwork, F = TokioFileSystem> !UnwindSafe for BoundedClusterHandle<R, N, F>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T, U> Upcast<T> for U
where T: UpcastFrom<U>,

Source§

fn upcast(self) -> T

Source§

impl<T, B> UpcastFrom<Counter<T, B>> for T

Source§

fn upcast_from(value: Counter<T, B>) -> T

Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V