dbus-server-address-parser

Crates.iodbus-server-address-parser
lib.rsdbus-server-address-parser
version1.0.1
sourcesrc
created_at2021-07-10 10:54:03.215268
updated_at2021-07-11 19:19:15.30131
descriptionLibrary to encode and decode DBus server address
homepage
repositoryhttps://github.com/LinkTed/dbus-server-address-parser
max_upload_size
id421054
size54,498
(LinkTed)

documentation

README

dbus-server-address-parser

A library to encode and decode DBus server address. Build status Dependency status Code coverage Latest version License

Usage

Add this to your Cargo.toml:

[dependencies]
dbus-server-address-parser = "~1.0.1"

Example

use dbus_server_address_parser::Address;

fn main() {
    let addresses_str = "unix:abstract=/tmp/dbus-U8OSdmf7;tcp:host=127.0.0.1,port=30958";
    // Decode address
    let addresses = Address::decode(addresses_str).unwrap();
    // Encode address
    let addresses_string = Address::encode(&addresses);

    println!("{}", addresses_string);
}
Commit count: 6

cargo fmt