Struct ipp::operation::builder::IppOperationBuilder
source · pub struct IppOperationBuilder;
Expand description
Builder to create IPP operations
Implementations§
source§impl IppOperationBuilder
impl IppOperationBuilder
sourcepub fn print_job(printer_uri: Uri, payload: IppPayload) -> PrintJobBuilder
pub fn print_job(printer_uri: Uri, payload: IppPayload) -> PrintJobBuilder
Create Print-Job operation
printer_uri
- printer URIpayload
-IppPayload
sourcepub fn get_printer_attributes(printer_uri: Uri) -> GetPrinterAttributesBuilder
pub fn get_printer_attributes(printer_uri: Uri) -> GetPrinterAttributesBuilder
Create Get-Printer-Attributes operation builder
printer_uri
- printer URI
sourcepub fn create_job(printer_uri: Uri) -> CreateJobBuilder
pub fn create_job(printer_uri: Uri) -> CreateJobBuilder
Create Create-Job operation builder
printer_uri
- printer URI
sourcepub fn cups() -> CupsBuilder
pub fn cups() -> CupsBuilder
Create CUPS-specific operations
sourcepub fn send_document(
printer_uri: Uri,
job_id: i32,
payload: IppPayload
) -> SendDocumentBuilder
pub fn send_document( printer_uri: Uri, job_id: i32, payload: IppPayload ) -> SendDocumentBuilder
Create Send-Document operation builder
printer_uri
- printer URIjob_id
- job id returned by Create-Job operationpayload
-IppPayload
sourcepub fn purge_jobs(printer_uri: Uri) -> PurgeJobsBuilder
pub fn purge_jobs(printer_uri: Uri) -> PurgeJobsBuilder
Create Purge-Jobs operation builder
printer_uri
- printer URI
sourcepub fn cancel_job(printer_uri: Uri, job_id: i32) -> CancelJobBuilder
pub fn cancel_job(printer_uri: Uri, job_id: i32) -> CancelJobBuilder
Create Cancel-Job operation builder
printer_uri
- printer URIjob_id
- job id to cancel
sourcepub fn get_job_attributes(
printer_uri: Uri,
job_id: i32
) -> GetJobAttributesBuilder
pub fn get_job_attributes( printer_uri: Uri, job_id: i32 ) -> GetJobAttributesBuilder
Create Get-Job-Attributes operation builder
printer_uri
- printer URIjob_id
- job id to cancel
sourcepub fn get_jobs(printer_uri: Uri) -> GetJobsBuilder
pub fn get_jobs(printer_uri: Uri) -> GetJobsBuilder
Create Get-Jobs operation builder
printer_uri
- printer URI
Auto Trait Implementations§
impl RefUnwindSafe for IppOperationBuilder
impl Send for IppOperationBuilder
impl Sync for IppOperationBuilder
impl Unpin for IppOperationBuilder
impl UnwindSafe for IppOperationBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more