srwalter / ipp.rs

IPP protocol implementation for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ipp.rs

IPP protocol implementation for Rust

Documentation

Usage example:

extern crate ipp;
use ipp::consts::tag::DelimiterTag;
use ipp::{GetPrinterAttributes, IppClient};
pub fn main() {
    let client = IppClient::new("http://localhost:631/printers/test-printer");
    let mut operation = GetPrinterAttributes::new();

    let attrs = client.send(&mut operation).unwrap();

    for v in attrs.get_group(DelimiterTag::PrinterAttributes).unwrap().values() {
        println!("{}: {}", v.name(), v.value());
    }
}

License

Licensed under MIT or Apache license (LICENSE-MIT or LICENSE-APACHE)

About

IPP protocol implementation for Rust


Languages

Language:Rust 100.0%