libstrophe 0.17.0

Rust ergonomic wrapper for libstrophe
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use libstrophe::{Connection, Context};
use std::time::Duration;

fn main() {
	{
		let mut val = 0;
		let mut conn = Connection::new(Context::new_with_null_logger());
		conn.timed_handler_add(|_, _| {
			val = 1;
			false
		}, Duration::from_secs(1));
		conn
	};
}