libstrophe 0.20.3

Rust ergonomic wrapper for libstrophe
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use libstrophe::{Connection, Context, HandlerResult};

fn main() {
	{
		let mut val = 0;
		let mut conn = Connection::new(Context::new_with_null_logger());
		conn.handler_add(
			|_, _, _| {
				val = 1;
				HandlerResult::RemoveHandler
			},
			None,
			None,
			None,
		);
		conn
	};
}