Struct actix_telepathy::prelude::Cluster [−][src]
Central Actor for cluster handling
Implementations
impl Cluster
[src]
pub fn new(ip_address: SocketAddr, seed_nodes: Vec<SocketAddr>) -> Addr<Cluster>
[src]
Trait Implementations
impl Actor for Cluster
[src]
type Context = Context<Self>
Actor execution context type
fn started(&mut self, ctx: &mut Self::Context)
[src]
pub fn stopping(&mut self, ctx: &mut Self::Context) -> Running
[src]
pub fn stopped(&mut self, ctx: &mut Self::Context)
[src]
pub fn start(self) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
[src]
Self: Actor<Context = Context<Self>>,
pub fn start_default() -> Addr<Self> where
Self: Actor<Context = Context<Self>> + Default,
[src]
Self: Actor<Context = Context<Self>> + Default,
pub fn start_in_arbiter<F>(arb: &Arbiter, f: F) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
F: FnOnce(&mut Context<Self>) -> Self + Send + 'static,
[src]
Self: Actor<Context = Context<Self>>,
F: FnOnce(&mut Context<Self>) -> Self + Send + 'static,
pub fn create<F>(f: F) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
F: FnOnce(&mut Context<Self>) -> Self,
[src]
Self: Actor<Context = Context<Self>>,
F: FnOnce(&mut Context<Self>) -> Self,
impl CustomSystemService for Cluster
[src]
fn start_service_with(
f: impl Fn() -> Self + Sync + 'static + Send
) -> Addr<Self>
[src]
f: impl Fn() -> Self + Sync + 'static + Send
) -> Addr<Self>
fn custom_service_started(&mut self, ctx: &mut Context<Self>)
[src]
fn add_to_registry(addr: Addr<Self>) -> Addr<Self>
[src]
fn from_custom_registry() -> Addr<Self>
[src]
impl Default for Cluster
[src]
impl Handler<ConnectionApproval> for Cluster
[src]
type Result = ConnectionApprovalResponse
The type of value that this handler will return. Read more
fn handle(
&mut self,
msg: ConnectionApproval,
_ctx: &mut Self::Context
) -> ConnectionApprovalResponse
[src]
&mut self,
msg: ConnectionApproval,
_ctx: &mut Self::Context
) -> ConnectionApprovalResponse
impl Handler<GossipResponse> for Cluster
[src]
type Result = ()
The type of value that this handler will return. Read more
fn handle(
&mut self,
msg: GossipResponse,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
&mut self,
msg: GossipResponse,
_ctx: &mut Context<Self>
) -> Self::Result
impl Handler<NodeEvents> for Cluster
[src]
type Result = ()
The type of value that this handler will return. Read more
fn handle(&mut self, msg: NodeEvents, _ctx: &mut Self::Context) -> Self::Result
[src]
impl Handler<TcpConnect> for Cluster
[src]
type Result = ()
The type of value that this handler will return. Read more
fn handle(&mut self, msg: TcpConnect, _ctx: &mut Self::Context) -> Self::Result
[src]
impl Supervised for Cluster
[src]
pub fn restarting(&mut self, ctx: &mut Self::Context)
[src]
impl SystemService for Cluster
[src]
pub fn start_service(sys: &Arbiter) -> Addr<Self>
[src]
pub fn service_started(&mut self, ctx: &mut Context<Self>)
[src]
pub fn from_registry() -> Addr<Self>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Cluster
impl Send for Cluster
impl Sync for Cluster
impl Unpin for Cluster
impl !UnwindSafe for Cluster
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,