pub struct MinimalDriver<T: IoProvider>(/* private fields */);
Expand description

This type provides a minimal DriverHooks implementation.

Implementations§

source§

impl<T: IoProvider> MinimalDriver<T>

source

pub fn new(io: T) -> Self

Create a new minimal driver.

Trait Implementations§

source§

impl<T: Clone + IoProvider> Clone for MinimalDriver<T>

source§

fn clone(&self) -> MinimalDriver<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug + IoProvider> Debug for MinimalDriver<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Default + IoProvider> Default for MinimalDriver<T>

source§

fn default() -> MinimalDriver<T>

Returns the “default value” for a type. Read more
source§

impl<T: IoProvider> DriverHooks for MinimalDriver<T>

source§

fn io(&mut self) -> &mut dyn IoProvider

Get the main I/O implementations of this driver.
source§

fn event_output_closed( &mut self, _name: String, _digest: DigestData, _status: &mut dyn StatusBackend )

This function is called when an output file is closed. The “digest” argument specifies the cryptographic digest of the data that were written. Note that this function takes ownership of the name and digest.
source§

fn event_input_closed( &mut self, _name: String, _digest: Option<DigestData>, _status: &mut dyn StatusBackend )

This function is called when an input file is closed. The “digest” argument specifies the cryptographic digest of the data that were read, if available. This digest is not always available, if the engine used seeks while reading the file. Note that this function takes ownership of the name and digest.
source§

fn sysrq_shell_escape( &mut self, _command: &str, _status: &mut dyn StatusBackend ) -> StdResult<(), SystemRequestError>

The engine is requesting a “shell escape” evaluation. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for MinimalDriver<T>
where T: RefUnwindSafe,

§

impl<T> Send for MinimalDriver<T>
where T: Send,

§

impl<T> Sync for MinimalDriver<T>
where T: Sync,

§

impl<T> Unpin for MinimalDriver<T>
where T: Unpin,

§

impl<T> UnwindSafe for MinimalDriver<T>
where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.