pub struct Paper { /* private fields */ }Expand description
An instance of the paper application.
Once Paper has started running, it shall continue until it has been terminated. Termination occurs when the application is ordered to quit or an unrecoverable error is thrown.
When Paper is dropped, it shall kill all spawned processes and return the user interface to its previous state.
§Examples
use paper::{Arguments, Failure, Paper};
Paper::new(Arguments::default())?.run()?;Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Paper
impl !RefUnwindSafe for Paper
impl !Send for Paper
impl !Sync for Paper
impl Unpin for Paper
impl !UnwindSafe for Paper
Blanket Implementations§
Source§impl<P, C> AssembleInto<C> for Pwhere
C: AssembleFrom<P>,
impl<P, C> AssembleInto<C> for Pwhere
C: AssembleFrom<P>,
Source§fn assemble_into(
parts: &mut Vec<P>,
) -> Result<C, AssembleFailure<<P as AssembleInto<C>>::Error>>
fn assemble_into( parts: &mut Vec<P>, ) -> Result<C, AssembleFailure<<P as AssembleInto<C>>::Error>>
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
Source§impl<P, C> DisassembleInto<P> for Cwhere
P: DisassembleFrom<C>,
impl<P, C> DisassembleInto<P> for Cwhere
P: DisassembleFrom<C>,
Source§type Error = <P as DisassembleFrom<C>>::Error
type Error = <P as DisassembleFrom<C>>::Error
Describes an error that prevents disassembly.
Source§fn disassemble_into(self) -> Result<Vec<P>, <C as DisassembleInto<P>>::Error>
fn disassemble_into(self) -> Result<Vec<P>, <C as DisassembleInto<P>>::Error>
Disassembles
self into a sequence of parts. Read moreSource§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more