Struct glory_core::widgets::Loader
source · pub struct Loader<T, Fut>{ /* private fields */ }Implementations§
source§impl<T, Fut> Loader<T, Fut>
impl<T, Fut> Loader<T, Fut>
pub fn new( fut_maker: impl Fn() -> Fut + Clone + 'static, callback: impl Fn(&T, &mut Scope) + 'static ) -> Self
pub fn fallback(self, fallback: impl Fn(&mut Scope) + 'static) -> Self
pub fn state(&self) -> Ref<'_, LoadState<T>>
pub fn observe(self, item: impl Revisable + 'static) -> Self
Trait Implementations§
source§impl<T, Fut> Widget for Loader<T, Fut>
impl<T, Fut> Widget for Loader<T, Fut>
fn attach(&mut self, _ctx: &mut Scope)
fn build(&mut self, ctx: &mut Scope)
fn patch(&mut self, ctx: &mut Scope)
fn store_in(self, parent: &mut Scope) -> ViewIdwhere
Self: Sized,
fn show_in(self, parent: &mut Scope) -> ViewIdwhere
Self: Sized,
fn mount_to(self, ctx: Scope, parent_node: &Node) -> ViewIdwhere
Self: Sized,
fn detach(&mut self, ctx: &mut Scope)
fn detach_children(&mut self, ctx: &mut Scope)
Auto Trait Implementations§
impl<T, Fut> !RefUnwindSafe for Loader<T, Fut>
impl<T, Fut> !Send for Loader<T, Fut>
impl<T, Fut> !Sync for Loader<T, Fut>
impl<T, Fut> Unpin for Loader<T, Fut>
impl<T, Fut> !UnwindSafe for Loader<T, Fut>
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