walleth 0.1.0

A (WIP) Rust library for easily create, manage, use and protect Ethereum accounts.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
type Listener<T> = dyn FnMut(&T) -> ();

pub struct Observer<S> {
	pub id: usize,
	pub callback: Box<Listener<S>>,
}

impl<S> Observer<S> {
	pub fn new(id: usize, callback: Box<Listener<S>>) -> Self {
		Observer {
			id,
			callback: callback,
		}
	}
}