[][src]Struct actix_telegram::application::Resource

pub struct Resource<'a, U, S> { /* fields omitted */ }

Methods

impl<'a, V, S> Resource<'a, V, S>
[src]

pub fn map<M, F>(self, function: F) -> Resource<'a, M, S> where
    F: FnOnce(V) -> M, 
[src]

pub fn f<F>(self, function: F) -> bool where
    F: FnOnce(V, &'a Addr<TelegramApi>, &'a S) -> bool
[src]

impl<'a, S> Resource<'a, Option<&'a Message>, S>
[src]

pub fn command<F>(self, function: F, starts_with: &str) -> bool where
    F: FnOnce(&'a Message, &'a Addr<TelegramApi>, &'a S) -> bool
[src]

impl<'a, S> Resource<'a, &'a Update, S>
[src]

pub fn message(self) -> Resource<'a, Option<&'a Message>, S>
[src]

pub fn command<F>(self, function: F, starts_with: &str) -> bool where
    F: FnOnce(&'a Message, &'a Addr<TelegramApi>, &'a S) -> bool
[src]

Auto Trait Implementations

impl<'a, U, S> Send for Resource<'a, U, S> where
    S: Sync,
    U: Send

impl<'a, U, S> Sync for Resource<'a, U, S> where
    S: Sync,
    U: Sync

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Erased for T