[][src]Struct lpr::LprConnection

pub struct LprConnection { /* fields omitted */ }

Methods

impl LprConnection[src]

pub fn new(ip_str: &str, timeout_ms: u64) -> Result<LprConnection, LprError>[src]

pub fn verbose(&mut self, verbose: bool)[src]

pub fn status(self) -> Result<String>[src]

pub fn print_file(&mut self, path_to_file: &str) -> Result<(), LprError>[src]

pub fn print_file_with_pjl_header(
    &mut self,
    path_to_file: &str,
    header_data: Vec<u8>
) -> Result<(), LprError>
[src]

pub fn print(&mut self, data: &[u8]) -> Result<(), LprError>[src]

Trait Implementations

impl Debug for LprConnection[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]