[][src]Struct actix_ogn::OGNActor

pub struct OGNActor { /* fields omitted */ }

An actor that connects to the OGN APRS servers

Methods

impl OGNActor[src]

pub fn new(recipient: Recipient<OGNMessage>) -> OGNActor[src]

Trait Implementations

impl Actor for OGNActor[src]

type Context = Context<Self>

Actor execution context type

fn stopping(&mut self, ctx: &mut Self::Context) -> Running[src]

Called after an actor is in Actor::Stopping state. Read more

fn start(self) -> Addr<Self> where
    Self: Actor<Context = Context<Self>>, 
[src]

Start a new asynchronous actor, returning its address. Read more

fn start_default() -> Addr<Self> where
    Self: Actor<Context = Context<Self>> + Default
[src]

Construct and start a new asynchronous actor, returning its address. Read more

fn start_in_arbiter<F>(arb: &Arbiter, f: F) -> Addr<Self> where
    F: FnOnce(&mut Context<Self>) -> Self + Send + 'static,
    Self: Actor<Context = Context<Self>>, 
[src]

Start new actor in arbiter's thread.

fn create<F>(f: F) -> Addr<Self> where
    F: FnOnce(&mut Context<Self>) -> Self + 'static,
    Self: Actor<Context = Context<Self>>, 
[src]

Start a new asynchronous actor given a Context. Read more

impl Supervised for OGNActor[src]

impl StreamHandler<String, Error> for OGNActor[src]

Send received lines to the recipient

fn started(&mut self, ctx: &mut Self::Context)[src]

Method is called when stream get polled first time.

fn error(&mut self, err: E, ctx: &mut Self::Context) -> Running[src]

Method is called when stream emits error. Read more

fn finished(&mut self, ctx: &mut Self::Context)[src]

Method is called when stream finishes. Read more

fn add_stream<S>(fut: S, ctx: &mut Self::Context) -> SpawnHandle where
    E: 'static,
    I: 'static,
    S: Stream<Item = I, Error = E> + 'static,
    Self::Context: AsyncContext<Self>, 
[src]

This method register stream to an actor context and allows to handle Stream in similar way as normal actor messages. Read more

impl WriteHandler<Error> for OGNActor[src]

fn finished(&mut self, ctx: &mut Self::Context)[src]

Called when the writer finishes. Read more

Auto Trait Implementations

impl !Send for OGNActor

impl Unpin for OGNActor

impl !Sync for OGNActor

impl !UnwindSafe for OGNActor

impl !RefUnwindSafe for OGNActor

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T