Crate matrix_sdk_common

Source
Expand description

Common types that are used in the different matrix-sdk layers.

NOTE: These are common dependencies for the different matrix-sdk layers, you’re probably interested in the main matrix-sdk crate.

Re-exports§

pub use ruma;
pub use store_locks::LEASE_DURATION_MS;

Modules§

debug
Helpers for creating std::fmt::Debug implementations.
deserialized_responses
executor
Abstraction over an executor so we can spawn tasks under Wasm the same way we do usually. On non Wasm platforms, this re-exports parts of tokio directly. For Wasm, we provide a single-threaded solution that matches the interface that tokio provides as a drop in replacement.
failures_cache
A TTL cache which can be used to time out repeated operations that might experience intermittent failures.
linked_chunk
A linked chunk is the underlying data structure that holds all events.
locks
Simplified locks hat panic instead of returning a Result when the lock is poisoned.
ring_buffer
serde_helpers
A collection of serde helpers to avoid having to deserialize an entire event to access some fields.
sleep
store_locks
Collection of small helpers that implement store-based locks.
stream
Platform-specific stream utilities.
timeout
tracing_timer
ttl_cache
A TTL cache which can be used to time out repeated operations that might experience intermittent failures.

Macros§

boxed_into_future
timer
Macro to create a RAII timer that will log on Drop how long its covered section took to execute.

Traits§

AsyncTraitDeps
Super trait that is used for our store traits, this trait will differ if it’s used on WASM. WASM targets will not require Send and Sync to have implemented, while other targets will.
SendOutsideWasm
Alias for Send on non-wasm, empty trait (implemented by everything) on wasm.
SyncOutsideWasm
Alias for Sync on non-wasm, empty trait (implemented by everything) on wasm.

Type Aliases§

BoxFuture