id_effect 0.1.1

Effect<A, E, R> (sync + async), context/layers, pipe — interpreter-style, no bundled executor
Documentation
1
2
3
4
5
6
7
8
9
10
//! Ex 031 — `service` wraps a value as `Tagged<K, V>`.
use id_effect::{service, service_key};

service_key!(struct PortKey);

fn main() {
  let cell = service::<PortKey, _>(8080_u16);
  assert_eq!(cell.value, 8080);
  println!("031_service_constructor ok");
}