Enum sciter::host::LOAD_RESULT
source · [−]#[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
sourceimpl Debug for LOAD_RESULT
impl Debug for LOAD_RESULT
sourceimpl PartialEq<LOAD_RESULT> for LOAD_RESULT
impl PartialEq<LOAD_RESULT> for LOAD_RESULT
sourceimpl PartialOrd<LOAD_RESULT> for LOAD_RESULT
impl PartialOrd<LOAD_RESULT> for LOAD_RESULT
sourcefn partial_cmp(&self, other: &LOAD_RESULT) -> Option<Ordering>
fn partial_cmp(&self, other: &LOAD_RESULT) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl StructuralPartialEq for LOAD_RESULT
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more