[][src]Struct rooper::Looper

pub struct Looper<T> where
    T: LooperMsg,
    T: Send + 'static, 
{ /* fields omitted */ }

Looper对象

Implementations

impl<T: LooperMsg + Send + 'static> Looper<T>[src]

pub fn new() -> Looper<T>[src]

创建looper

pub fn send_msg(&self, msg: T)[src]

向looper发送消息

pub fn send_msg_delay(&self, msg: T, delay: Duration)[src]

向looper发送延时消息

  • delay: 延时时间

pub fn terminate(&mut self)[src]

发送停止运行消息

Auto Trait Implementations

impl<T> !RefUnwindSafe for Looper<T>

impl<T> Send for Looper<T>

impl<T> Sync for Looper<T>

impl<T> Unpin for Looper<T>

impl<T> !UnwindSafe for Looper<T>

Blanket Implementations

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

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

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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.