pub struct VisitorSession { /* private fields */ }Implementations§
Source§impl VisitorSession
impl VisitorSession
pub fn new( id: usize, server: Recipient<ToProxyServer>, src_address: DstAddress, framed: Framed<VisitorResponse, VisitorCodec>, ) -> Self
Trait Implementations§
Source§impl Actor for VisitorSession
impl Actor for VisitorSession
Source§type Context = Context<VisitorSession>
type Context = Context<VisitorSession>
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, ctx: &mut Self::Context) -> Running
fn stopping(&mut self, ctx: &mut Self::Context) -> Running
Called after an actor is in
Actor::Stopping state. Read moreSource§fn start_default() -> Addr<Self>
fn start_default() -> Addr<Self>
Construct and start a new asynchronous actor, returning its
address. Read more
Source§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 Default for VisitorSession
impl Default for VisitorSession
Source§fn default() -> VisitorSession
fn default() -> VisitorSession
Returns the “default value” for a type. Read more
Source§impl Handler<ToSession> for VisitorSession
impl Handler<ToSession> for VisitorSession
Source§impl StreamHandler<Result<VisitorRequest, Error>> for VisitorSession
impl StreamHandler<Result<VisitorRequest, Error>> for VisitorSession
Source§fn handle(
&mut self,
request: Result<VisitorRequest, Error>,
ctx: &mut Context<Self>,
)
fn handle( &mut self, request: Result<VisitorRequest, Error>, ctx: &mut Context<Self>, )
Called for every message emitted by the stream.
Source§fn add_stream<S>(stream: S, ctx: &mut Self::Context) -> SpawnHandlewhere
S: Stream + 'static,
Self: StreamHandler<<S as Stream>::Item>,
Self::Context: AsyncContext<Self>,
fn add_stream<S>(stream: S, ctx: &mut Self::Context) -> SpawnHandlewhere
S: Stream + 'static,
Self: StreamHandler<<S as Stream>::Item>,
Self::Context: AsyncContext<Self>,
Register a Stream to the actor context.
Auto Trait Implementations§
impl Freeze for VisitorSession
impl !RefUnwindSafe for VisitorSession
impl !Send for VisitorSession
impl !Sync for VisitorSession
impl Unpin for VisitorSession
impl !UnwindSafe for VisitorSession
Blanket Implementations§
Source§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
Source§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
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