libstrophe 0.20.3

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

fn main() {
	let mut conn = Connection::new(Context::new_with_null_logger());
	{
		let handler = |_: &Context, _: &mut Connection| HandlerResult::RemoveHandler;
		conn.timed_handler_add(&handler, Duration::from_secs(1));
		conn
	};
}