pub struct NotificationsProviderProps<N: Notifiable + PartialEq, F: NotifiableComponentFactory<N> + PartialEq + Clone> {
pub children: Children,
pub component_creator: F,
pub position: NotificationsPosition,
pub _notification: PhantomData<N>,
}
Expand description
Props for NotificationsProvider
Fields§
§children: Children
Inner provider components
component_creator: F
Instance of the component factory
position: NotificationsPosition
Notifications position on the screen
Default position is bottom right.
_notification: PhantomData<N>
Trait Implementations§
source§impl<N: Clone + Notifiable + PartialEq, F: Clone + NotifiableComponentFactory<N> + PartialEq + Clone> Clone for NotificationsProviderProps<N, F>
impl<N: Clone + Notifiable + PartialEq, F: Clone + NotifiableComponentFactory<N> + PartialEq + Clone> Clone for NotificationsProviderProps<N, F>
source§fn clone(&self) -> NotificationsProviderProps<N, F>
fn clone(&self) -> NotificationsProviderProps<N, F>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<N: PartialEq + Notifiable + PartialEq, F: PartialEq + NotifiableComponentFactory<N> + PartialEq + Clone> PartialEq for NotificationsProviderProps<N, F>
impl<N: PartialEq + Notifiable + PartialEq, F: PartialEq + NotifiableComponentFactory<N> + PartialEq + Clone> PartialEq for NotificationsProviderProps<N, F>
source§fn eq(&self, other: &NotificationsProviderProps<N, F>) -> bool
fn eq(&self, other: &NotificationsProviderProps<N, F>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<N: Notifiable + PartialEq, F: NotifiableComponentFactory<N> + PartialEq + Clone> Properties for NotificationsProviderProps<N, F>
impl<N: Notifiable + PartialEq, F: NotifiableComponentFactory<N> + PartialEq + Clone> Properties for NotificationsProviderProps<N, F>
impl<N: Notifiable + PartialEq, F: NotifiableComponentFactory<N> + PartialEq + Clone> StructuralPartialEq for NotificationsProviderProps<N, F>
Auto Trait Implementations§
impl<N, F> !RefUnwindSafe for NotificationsProviderProps<N, F>
impl<N, F> !Send for NotificationsProviderProps<N, F>
impl<N, F> !Sync for NotificationsProviderProps<N, F>
impl<N, F> Unpin for NotificationsProviderProps<N, F>
impl<N, F> !UnwindSafe for NotificationsProviderProps<N, F>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.