[−][src]Struct bottle::thread::Thread
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]
F: Fn(&dyn Any) -> Option<T>,
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]
fn as_receiver(&Self) -> Result<Remote<T>, NotReceiver>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,