[go: up one dir, main page]

logo
pub struct PrintProxy<'a>(_);
Expand description

The interface lets sandboxed applications print.

Wrapper of the DBus interface: org.freedesktop.portal.Print.

Implementations

Create a new instance of PrintProxy.

Get a reference to the underlying Proxy.

Presents a print dialog to the user and returns print settings and page setup.

Arguments
  • identifier - Identifier for the application window.
  • title - Title for the print dialog.
  • settings - Settings.
  • page_setup - PageSetup.
  • modal - Whether the dialog should be a modal.
Specifications

See also PreparePrint.

Asks to print a file. The file must be passed in the form of a file descriptor open for reading. This ensures that sandboxed applications only print files that they have access to.

Arguments
  • identifier - The application window identifier.
  • title - The title for the print dialog.
  • fd - File descriptor for reading the content to print.
  • token - A token returned by a call to prepare_print().
  • modal - Whether the dialog should be a modal.
Specifications

See also Print.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.