[][src]Struct bottle::thread::Thread

pub struct Thread { /* fields omitted */ }

Methods

impl Thread[src]

pub fn new() -> Arc<Thread>[src]

pub fn ping(&self)[src]

pub fn query<Q: 'static + Query>(&self, query: Q)[src]

pub fn len(&self) -> usize[src]

pub fn count(&self) -> usize[src]

pub fn current_receiver<T>(&self, t: &T) -> Option<Remote<T>>[src]

pub fn yield(&self)[src]

pub fn await<R>(&self, p: Future<R>) -> Result<R>[src]

pub fn current() -> Option<Arc<Thread>>[src]

pub fn save_data<T: Any>(t: T)[src]

Save data in the current thread.

pub fn find_user_data<F, T>(f: F) -> Option<T> where
    F: Fn(&dyn Any) -> Option<T>, 
[src]

Retreive user data in the current thread.

pub fn start(this: &Arc<Thread>)[src]

Auto Trait Implementations

impl Send for Thread

impl Unpin for Thread

impl Sync for Thread

impl UnwindSafe for Thread

impl RefUnwindSafe for Thread

Blanket Implementations

impl<T> AsReceiver for T[src]

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]