pub struct SimpleIppService<T: SimpleIppServiceHandler> { /* private fields */ }Implementations§
Source§impl<T: SimpleIppServiceHandler> SimpleIppService<T>
impl<T: SimpleIppServiceHandler> SimpleIppService<T>
pub fn new(info: PrinterInfo, handler: T) -> Self
pub fn set_host(&mut self, host: &str)
pub fn set_basepath(&mut self, basepath: &str)
pub fn set_info(&mut self, info: PrinterInfo)
Trait Implementations§
Source§impl<T: SimpleIppServiceHandler> IppService for SimpleIppService<T>
impl<T: SimpleIppServiceHandler> IppService for SimpleIppService<T>
fn version(&self) -> IppVersion
async fn print_job(&self, head: ReqParts, req: IppRequestResponse) -> IppResult
async fn validate_job( &self, _head: ReqParts, req: IppRequestResponse, ) -> IppResult
async fn create_job(&self, head: ReqParts, req: IppRequestResponse) -> IppResult
async fn send_document( &self, head: ReqParts, req: IppRequestResponse, ) -> IppResult
async fn cancel_job( &self, _head: ReqParts, req: IppRequestResponse, ) -> IppResult
async fn get_job_attributes( &self, head: ReqParts, req: IppRequestResponse, ) -> IppResult
async fn get_jobs(&self, head: ReqParts, req: IppRequestResponse) -> IppResult
async fn get_printer_attributes( &self, head: ReqParts, req: IppRequestResponse, ) -> IppResult
fn print_uri( &self, _head: ReqParts, _req: IppRequestResponse, ) -> impl Future<Output = IppResult> + Send
fn send_uri( &self, _head: ReqParts, _req: IppRequestResponse, ) -> impl Future<Output = IppResult> + Send
fn hold_job( &self, _head: ReqParts, _req: IppRequestResponse, ) -> impl Future<Output = IppResult> + Send
fn release_job( &self, _head: ReqParts, _req: IppRequestResponse, ) -> impl Future<Output = IppResult> + Send
fn restart_job( &self, _head: ReqParts, _req: IppRequestResponse, ) -> impl Future<Output = IppResult> + Send
fn pause_printer( &self, _head: ReqParts, _req: IppRequestResponse, ) -> impl Future<Output = IppResult> + Send
fn resume_printer( &self, _head: ReqParts, _req: IppRequestResponse, ) -> impl Future<Output = IppResult> + Send
fn purge_jobs( &self, _head: ReqParts, _req: IppRequestResponse, ) -> impl Future<Output = IppResult> + Send
fn check_version(&self, req: &IppRequestResponse) -> bool
fn build_error_response( &self, version: IppVersion, req_id: u32, error: Error, ) -> IppRequestResponse
fn handle_request( &self, head: ReqParts, req: IppRequestResponse, ) -> impl Future<Output = IppRequestResponse> + Send
Auto Trait Implementations§
impl<T> !Freeze for SimpleIppService<T>
impl<T> !RefUnwindSafe for SimpleIppService<T>
impl<T> Send for SimpleIppService<T>
impl<T> Sync for SimpleIppService<T>
impl<T> Unpin for SimpleIppService<T>where
T: Unpin,
impl<T> !UnwindSafe for SimpleIppService<T>
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