logo
#[repr(C)]
pub enum LOAD_RESULT {
    LOAD_DEFAULT,
    LOAD_DISCARD,
    LOAD_DELAYED,
    LOAD_MYSELF,
}
Expand description

HostHandler::on_data_load() result code.

This notification gives application a chance to override built-in loader and implement loading of resources in its own way (for example, images can be loaded from a database or other resource).

Variants

LOAD_DEFAULT

Do the default loading if data is not set.

LOAD_DISCARD

Discard the request completely (data will not be loaded at the document).

LOAD_DELAYED

Data will be delivered later by the host application.

LOAD_MYSELF

You return this result to indicate that your (the host) application took or will take care about HREQUEST in your code completely.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. 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.