#[repr(C)]pub enum LOAD_RESULT {
LOAD_DEFAULT = 0,
LOAD_DISCARD = 1,
LOAD_DELAYED = 2,
LOAD_MYSELF = 3,
}
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 = 0
Do the default loading if data is not set.
LOAD_DISCARD = 1
Discard the request completely (data will not be loaded at the document).
LOAD_DELAYED = 2
Data will be delivered later by the host application.
LOAD_MYSELF = 3
You return this result to indicate that your (the host) application took or
will take care about HREQUEST
in your code completely.
Trait Implementations§
Source§impl Debug for LOAD_RESULT
impl Debug for LOAD_RESULT
Source§impl PartialEq for LOAD_RESULT
impl PartialEq for LOAD_RESULT
Source§impl PartialOrd for LOAD_RESULT
impl PartialOrd for LOAD_RESULT
impl StructuralPartialEq for LOAD_RESULT
Auto Trait Implementations§
impl Freeze for LOAD_RESULT
impl RefUnwindSafe for LOAD_RESULT
impl Send for LOAD_RESULT
impl Sync for LOAD_RESULT
impl Unpin for LOAD_RESULT
impl UnwindSafe for LOAD_RESULT
Blanket Implementations§
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