pub enum PrintResponse {
Cancelled,
Success,
Failure,
ReplyLater,
}
Available on crate feature
appkit
only.Expand description
Used for handling printing files. You return this in relevant AppController
methods.
Variants
Cancelled
Printing was cancelled.
Success
Printing was a success.
Failure
Printing failed.
ReplyLater
For when the result of printing cannot be returned immediately (e.g, if printing causes a sheet to appear).
If your method returns PrintResponse::ReplyLater it must always invoke App::reply_to_open_or_print()
when the
entire print operation has been completed, successfully or not.
Trait Implementations
sourceimpl Clone for PrintResponse
impl Clone for PrintResponse
sourcefn clone(&self) -> PrintResponse
fn clone(&self) -> PrintResponse
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PrintResponse
impl Debug for PrintResponse
sourceimpl From<PrintResponse> for NSUInteger
impl From<PrintResponse> for NSUInteger
sourcefn from(response: PrintResponse) -> NSUInteger
fn from(response: PrintResponse) -> NSUInteger
Converts to this type from the input type.
impl Copy for PrintResponse
Auto Trait Implementations
impl RefUnwindSafe for PrintResponse
impl Send for PrintResponse
impl Sync for PrintResponse
impl Unpin for PrintResponse
impl UnwindSafe for PrintResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more