tokio-dbus 0.2.0

Pure Rust D-Bus implementation for Tokio.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::Auth;

#[test]
fn test_external_from_uid() {
    assert_eq!(
        Auth::external_from_u32_ascii_hex(&mut [0; 32], 1000),
        Auth::External(b"31303030")
    );
    assert_eq!(
        Auth::external_from_u32_ascii_hex(&mut [0; 32], u32::MAX),
        Auth::External(b"34323934393637323935")
    );
    assert_eq!(
        Auth::external_from_u32_ascii_hex(&mut [0; 32], 0),
        Auth::External(b"00")
    );
}