[−][src]Struct rooper::Looper
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[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.
pub 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>,