event-source 0.4.2

Zero cost async immediate event dispatching
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * Created on Thu Sep 07 2023
 *
 * Copyright (c) storycraft. Licensed under the MIT Licence.
 */

use crate::future::ListenerItem;

pub(crate) type NodeTypes<T> = dyn pin_list::Types<
    Id = pin_list::id::Unchecked,
    Protected = ListenerItem<T>,
    Unprotected = (),
    Removed = (),
>;

pub(crate) type PinList<T> = pin_list::PinList<NodeTypes<T>>;

pub(crate) type Node<T> = pin_list::Node<NodeTypes<T>>;