[−][src]Struct azul_css::HotReloadOverrideHandler
Custom hot-reloader combinator that can be used to merge hot-reloaded styles onto a base style. Can be useful when working from a base configuration, such as the OS-native styles.
Fields
base_style: Css
The base style, usually provided by azul-native-style
.
hot_reloader: Box<dyn HotReloadHandler>
The style that will be added on top of the base_style
.
Implementations
impl HotReloadOverrideHandler
[src]
pub fn new(base_style: Css, hot_reloader: Box<dyn HotReloadHandler>) -> Self
[src]
Creates a new HotReloadHandler
that merges styles onto the given base style
(usually the system-native style, in order to let the user override properties).
Trait Implementations
impl HotReloadHandler for HotReloadOverrideHandler
[src]
fn reload_style(&self) -> Result<Css, String>
[src]
fn get_reload_interval(&self) -> Duration
[src]
Auto Trait Implementations
impl !RefUnwindSafe for HotReloadOverrideHandler
impl !Send for HotReloadOverrideHandler
impl !Sync for HotReloadOverrideHandler
impl Unpin for HotReloadOverrideHandler
impl !UnwindSafe for HotReloadOverrideHandler
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,