pub trait ConnectionExt: RequestConnection {
Show 25 methods
// Provided methods
fn xprint_print_query_version(
&self,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, PrintQueryVersionReply>, ConnectionError>> + Send + '_>> { ... }
fn xprint_print_get_printer_list<'c, 'input, 'future>(
&'c self,
printer_name: &'input [String8],
locale: &'input [String8],
) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, PrintGetPrinterListReply>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn xprint_print_rehash_printer_list(
&self,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn xprint_create_context<'c, 'input, 'future>(
&'c self,
context_id: u32,
printer_name: &'input [String8],
locale: &'input [String8],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn xprint_print_set_context(
&self,
context: u32,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn xprint_print_get_context(
&self,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, PrintGetContextReply>, ConnectionError>> + Send + '_>> { ... }
fn xprint_print_destroy_context(
&self,
context: u32,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn xprint_print_get_screen_of_context(
&self,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, PrintGetScreenOfContextReply>, ConnectionError>> + Send + '_>> { ... }
fn xprint_print_start_job(
&self,
output_mode: u8,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn xprint_print_end_job(
&self,
cancel: bool,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn xprint_print_start_doc(
&self,
driver_mode: u8,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn xprint_print_end_doc(
&self,
cancel: bool,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn xprint_print_put_document_data<'c, 'input, 'future>(
&'c self,
drawable: Drawable,
data: &'input [u8],
doc_format: &'input [String8],
options: &'input [String8],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn xprint_print_get_document_data(
&self,
context: Pcontext,
max_bytes: u32,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, PrintGetDocumentDataReply>, ConnectionError>> + Send + '_>> { ... }
fn xprint_print_start_page(
&self,
window: Window,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn xprint_print_end_page(
&self,
cancel: bool,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn xprint_print_select_input(
&self,
context: Pcontext,
event_mask: u32,
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn xprint_print_input_selected(
&self,
context: Pcontext,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, PrintInputSelectedReply>, ConnectionError>> + Send + '_>> { ... }
fn xprint_print_get_attributes(
&self,
context: Pcontext,
pool: u8,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, PrintGetAttributesReply>, ConnectionError>> + Send + '_>> { ... }
fn xprint_print_get_one_attributes<'c, 'input, 'future>(
&'c self,
context: Pcontext,
pool: u8,
name: &'input [String8],
) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, PrintGetOneAttributesReply>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn xprint_print_set_attributes<'c, 'input, 'future>(
&'c self,
context: Pcontext,
string_len: u32,
pool: u8,
rule: u8,
attributes: &'input [String8],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn xprint_print_get_page_dimensions(
&self,
context: Pcontext,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, PrintGetPageDimensionsReply>, ConnectionError>> + Send + '_>> { ... }
fn xprint_print_query_screens(
&self,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, PrintQueryScreensReply>, ConnectionError>> + Send + '_>> { ... }
fn xprint_print_set_image_resolution(
&self,
context: Pcontext,
image_resolution: u16,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, PrintSetImageResolutionReply>, ConnectionError>> + Send + '_>> { ... }
fn xprint_print_get_image_resolution(
&self,
context: Pcontext,
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, PrintGetImageResolutionReply>, ConnectionError>> + Send + '_>> { ... }
}
Expand description
Extension trait defining the requests of this extension.
Provided Methods§
fn xprint_print_query_version( &self, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, PrintQueryVersionReply>, ConnectionError>> + Send + '_>>
fn xprint_print_get_printer_list<'c, 'input, 'future>(
&'c self,
printer_name: &'input [String8],
locale: &'input [String8],
) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, PrintGetPrinterListReply>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn xprint_print_rehash_printer_list( &self, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xprint_create_context<'c, 'input, 'future>(
&'c self,
context_id: u32,
printer_name: &'input [String8],
locale: &'input [String8],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn xprint_print_set_context( &self, context: u32, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xprint_print_get_context( &self, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, PrintGetContextReply>, ConnectionError>> + Send + '_>>
fn xprint_print_destroy_context( &self, context: u32, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xprint_print_get_screen_of_context( &self, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, PrintGetScreenOfContextReply>, ConnectionError>> + Send + '_>>
fn xprint_print_start_job( &self, output_mode: u8, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xprint_print_end_job( &self, cancel: bool, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xprint_print_start_doc( &self, driver_mode: u8, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xprint_print_end_doc( &self, cancel: bool, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xprint_print_put_document_data<'c, 'input, 'future>(
&'c self,
drawable: Drawable,
data: &'input [u8],
doc_format: &'input [String8],
options: &'input [String8],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn xprint_print_get_document_data( &self, context: Pcontext, max_bytes: u32, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, PrintGetDocumentDataReply>, ConnectionError>> + Send + '_>>
fn xprint_print_start_page( &self, window: Window, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xprint_print_end_page( &self, cancel: bool, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xprint_print_select_input( &self, context: Pcontext, event_mask: u32, ) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>>
fn xprint_print_input_selected( &self, context: Pcontext, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, PrintInputSelectedReply>, ConnectionError>> + Send + '_>>
fn xprint_print_get_attributes( &self, context: Pcontext, pool: u8, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, PrintGetAttributesReply>, ConnectionError>> + Send + '_>>
fn xprint_print_get_one_attributes<'c, 'input, 'future>(
&'c self,
context: Pcontext,
pool: u8,
name: &'input [String8],
) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, PrintGetOneAttributesReply>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn xprint_print_set_attributes<'c, 'input, 'future>(
&'c self,
context: Pcontext,
string_len: u32,
pool: u8,
rule: u8,
attributes: &'input [String8],
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>where
'c: 'future,
'input: 'future,
fn xprint_print_get_page_dimensions( &self, context: Pcontext, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, PrintGetPageDimensionsReply>, ConnectionError>> + Send + '_>>
fn xprint_print_query_screens( &self, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, PrintQueryScreensReply>, ConnectionError>> + Send + '_>>
fn xprint_print_set_image_resolution( &self, context: Pcontext, image_resolution: u16, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, PrintSetImageResolutionReply>, ConnectionError>> + Send + '_>>
fn xprint_print_get_image_resolution( &self, context: Pcontext, ) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, PrintGetImageResolutionReply>, ConnectionError>> + Send + '_>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.