pub struct FutureStyleConnection { /* private fields */ }Implementations§
Source§impl FutureStyleConnection
impl FutureStyleConnection
pub fn new(endpoint: String, options: ConnectionOptions) -> Self
pub fn with_alt_endpoints( endpoints: Vec<String>, options: ConnectionOptions, ) -> Self
pub fn start2(endpoint: String, options: ConnectionOptions) -> Addr<Self>
pub fn start_with_alt_endpoints2( endpoints: Vec<String>, options: ConnectionOptions, ) -> Addr<Self>
pub fn start3( endpoint: String, options: ConnectionOptions, arbiter: ArbiterHandle, ) -> Addr<Self>
pub fn start_with_alt_endpoints3( endpoints: Vec<String>, options: ConnectionOptions, arbiter: ArbiterHandle, ) -> Addr<Self>
pub async fn stop(addr: Addr<Self>) -> Result<(), HandleError<StopMsg>>
Trait Implementations§
Source§impl Actor for FutureStyleConnection
impl Actor for FutureStyleConnection
Source§type Context = Context<FutureStyleConnection>
type Context = Context<FutureStyleConnection>
Actor execution context type
Source§fn started(&mut self, ctx: &mut Self::Context)
fn started(&mut self, ctx: &mut Self::Context)
Called when an actor gets polled the first time.
Source§fn stopping(&mut self, _: &mut Self::Context) -> Running
fn stopping(&mut self, _: &mut Self::Context) -> Running
Called after an actor is in
Actor::Stopping state. Read moreSource§fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self>
fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self>
Start new actor in arbiter’s thread.
Source§impl<OEH: ObservableEventHandler> Handler<ObserveObservableEventWithHandlerMsg<OEH>> for FutureStyleConnection
impl<OEH: ObservableEventHandler> Handler<ObserveObservableEventWithHandlerMsg<OEH>> for FutureStyleConnection
Source§impl Handler<ProtocolMsg> for FutureStyleConnection
impl Handler<ProtocolMsg> for FutureStyleConnection
Source§type Result = Pin<Box<dyn Future<Output = Result<ProtocolMsg, HandleError<ProtocolMsg>>>>>
type Result = Pin<Box<dyn Future<Output = Result<ProtocolMsg, HandleError<ProtocolMsg>>>>>
The type of value that this handler will return. Read more
Source§impl Handler<StopMsg> for FutureStyleConnection
impl Handler<StopMsg> for FutureStyleConnection
impl Connection for FutureStyleConnection
Auto Trait Implementations§
impl Freeze for FutureStyleConnection
impl !RefUnwindSafe for FutureStyleConnection
impl !Send for FutureStyleConnection
impl !Sync for FutureStyleConnection
impl Unpin for FutureStyleConnection
impl !UnwindSafe for FutureStyleConnection
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