pub struct ResizeService {}
Expand description
A service which fires events when the browser window is resized.
Implementations§
Source§impl ResizeService
impl ResizeService
Sourcepub fn register(callback: Callback<WindowDimensions>) -> ResizeTask
pub fn register(callback: Callback<WindowDimensions>) -> ResizeTask
Register a callback that will be called when the browser window resizes.
Trait Implementations§
Source§impl Debug for ResizeService
impl Debug for ResizeService
Source§impl Default for ResizeService
impl Default for ResizeService
Source§fn default() -> ResizeService
fn default() -> ResizeService
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ResizeService
impl RefUnwindSafe for ResizeService
impl Send for ResizeService
impl Sync for ResizeService
impl Unpin for ResizeService
impl UnwindSafe for ResizeService
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
Source§impl<T, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
impl<T, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
Source§fn into_opt_prop_value(self) -> Option<V>
fn into_opt_prop_value(self) -> Option<V>
Convert
self
to an optional value of a Properties
struct.Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.