pub struct Session { /* private fields */ }Expand description
An actor which manages the IPC connection to a remote endpoint.
Trait Implementations§
Source§impl Actor for Session
impl Actor for Session
Source§type Error = SessionError
type Error = SessionError
The error type returned by lifecycle hooks and message handlers.
Source§async fn post_start(
&mut self,
ctx: &mut Self::Context,
) -> Result<(), SessionError>
async fn post_start( &mut self, ctx: &mut Self::Context, ) -> Result<(), SessionError>
Source§fn stopping(
&mut self,
ctx: &mut Self::Context,
) -> impl Future<Output = Result<Stopping, Self::Error>> + Send
fn stopping( &mut self, ctx: &mut Self::Context, ) -> impl Future<Output = Result<Stopping, Self::Error>> + Send
Source§impl Handler<BinaryMessage> for Session
impl Handler<BinaryMessage> for Session
Source§impl<A> Handler<RemoteCreateActor<A>> for Sessionwhere
A: Actor + RemoteSpawnable,
impl<A> Handler<RemoteCreateActor<A>> for Sessionwhere
A: Actor + RemoteSpawnable,
Source§type Result = FutureMessageResult<RemoteCreateActor<A>>
type Result = FutureMessageResult<RemoteCreateActor<A>>
The return type of the handler, which must implement
MessageResponse.Source§impl<A> Handler<RemoteGetActor<A>> for Sessionwhere
A: Actor + RemoteAddressable,
impl<A> Handler<RemoteGetActor<A>> for Sessionwhere
A: Actor + RemoteAddressable,
Source§type Result = FutureMessageResult<RemoteGetActor<A>>
type Result = FutureMessageResult<RemoteGetActor<A>>
The return type of the handler, which must implement
MessageResponse.Auto Trait Implementations§
impl !RefUnwindSafe for Session
impl !UnwindSafe for Session
impl Freeze for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
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