kithara-platform 0.0.1-alpha5

Cross-platform primitives (sync, time, thread) for native and wasm32.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// All senders dropped; the watched value will never change again.
#[derive(Debug, Clone, Copy, derive_more::Display, PartialEq, Eq)]
#[display("watch channel closed")]
#[derive(derive_more::Error)]
#[error(ignore)]
pub struct RecvError;

/// Returned by `Sender::send` when no receivers remain; carries the value back.
/// Distinct from `tokio`'s (its inner field is private); callers discard it.
#[derive(derive_more::Debug, derive_more::Display)]
#[debug("SendError(..)")]
#[display("sending on a watch channel with no receivers")]
#[derive(derive_more::Error)]
#[error(ignore)]
pub struct SendError<T>(pub T);