[][src]Struct moltenvk_deps::Message

pub struct Message {
    pub question: Box<dyn FnMut() -> bool>,
    pub progress: Box<dyn FnMut(u64, u64) -> bool + Send>,
    pub unpacking: Box<dyn FnMut()>,
    pub complete: Box<dyn FnMut()>,
}

Specify callbacks to the user for the install. Can use Default::default()

Fields

question: Box<dyn FnMut() -> bool>

Initial question, do they want to install?

progress: Box<dyn FnMut(u64, u64) -> bool + Send>

This function gives progress while the download is happending (download_so_for, total_file_size)

unpacking: Box<dyn FnMut()>

Message for when unpacking tar

complete: Box<dyn FnMut()>

Message for when complete

Trait Implementations

impl Default for Message[src]

Auto Trait Implementations

impl !Send for Message

impl !Sync for Message

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]