Module sn_networking::target_arch
source · Structs§
- Wasm32 target arch does not support
time
or spawning via tokio so we shim in alternatives here when building for that architecture ADuration
type to represent a span of time, typically used for system timeouts. - A measurement of a monotonically nondecreasing clock. Opaque and useful only with
Duration
. - Wasm32 target arch does not support
time
or spawning via tokio so we shim in alternatives here when building for that architecture Interval returned byinterval
andinterval_at
.
Functions§
- Wasm32 target arch does not support
time
or spawning via tokio so we shim in alternatives here when building for that architecture Creates newInterval
that yields with interval ofperiod
. The first tick completes immediately. The defaultMissedTickBehavior
isBurst
, but this can be configured by callingset_missed_tick_behavior
. - Wasm32 target arch does not support
time
or spawning via tokio so we shim in alternatives here when building for that architecture Waits untilduration
has elapsed. - Wasm32 target arch does not support
time
or spawning via tokio so we shim in alternatives here when building for that architecture Spawns a new asynchronous task, returning aJoinHandle
for it. - Wasm32 target arch does not support
time
or spawning via tokio so we shim in alternatives here when building for that architecture Requires aFuture
to complete before the specified duration has elapsed.