pub struct OGNActor { /* private fields */ }Expand description
An actor that connects to the OGN APRS servers
Implementations§
Trait Implementations§
Source§impl Actor for OGNActor
impl Actor for OGNActor
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_in_arbiter<F>(arb: &Arbiter, f: F) -> Addr<Self>
fn start_in_arbiter<F>(arb: &Arbiter, f: F) -> Addr<Self>
Start new actor in arbiter’s thread.
Source§impl StreamHandler<Result<String, LinesCodecError>> for OGNActor
Send received lines to the recipient
impl StreamHandler<Result<String, LinesCodecError>> for OGNActor
Send received lines to the recipient
Source§fn handle(
&mut self,
line: Result<String, LinesCodecError>,
_: &mut Self::Context,
)
fn handle( &mut self, line: Result<String, LinesCodecError>, _: &mut Self::Context, )
Method is called for every message received by this Actor
Source§fn started(&mut self, ctx: &mut Self::Context)
fn started(&mut self, ctx: &mut Self::Context)
Method is called when stream get polled first time.
Source§fn finished(&mut self, ctx: &mut Self::Context)
fn finished(&mut self, ctx: &mut Self::Context)
Method is called when stream finishes. Read more
Source§fn add_stream<S>(fut: S, ctx: &mut Self::Context) -> SpawnHandle
fn add_stream<S>(fut: S, ctx: &mut Self::Context) -> SpawnHandle
This method register stream to an actor context and
allows to handle
Stream in similar way as normal actor messages. Read moreSource§impl Supervised for OGNActor
impl Supervised for OGNActor
Source§fn restarting(&mut self, _: &mut Self::Context)
fn restarting(&mut self, _: &mut Self::Context)
Called when the supervisor restarts a failed actor.
Auto Trait Implementations§
impl Freeze for OGNActor
impl !RefUnwindSafe for OGNActor
impl !Send for OGNActor
impl !Sync for OGNActor
impl Unpin for OGNActor
impl !UnwindSafe for OGNActor
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