pub struct TimeClient { /* private fields */ }Implementations§
Source§impl TimeClient
impl TimeClient
pub fn new(wapm: &str) -> Self
pub fn new_with_instance(wapm: &str, instance: &str, access_token: &str) -> Self
pub fn attach(handle: CallHandle) -> Self
pub fn wait(self) -> Result<(), BusError>
pub fn try_wait(&mut self) -> Result<Option<()>, BusError>
pub async fn sleep(&self, duration_ms: u128) -> Result<(), BusError>
pub fn blocking_sleep(&self, duration_ms: u128) -> Result<(), BusError>
Trait Implementations§
Source§impl Clone for TimeClient
impl Clone for TimeClient
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimeClient
impl Debug for TimeClient
Source§impl Future for TimeClient
impl Future for TimeClient
Source§impl Time for TimeClient
impl Time for TimeClient
fn sleep<'life0, 'async_trait>(
&'life0 self,
duration_ms: u128,
) -> Pin<Box<dyn Future<Output = Result<(), BusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn blocking_sleep(&self, duration_ms: u128) -> Result<(), BusError>
fn as_client(&self) -> Option<TimeClient>
Auto Trait Implementations§
impl Freeze for TimeClient
impl !RefUnwindSafe for TimeClient
impl Send for TimeClient
impl Sync for TimeClient
impl Unpin for TimeClient
impl !UnwindSafe for TimeClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more