Enum leptos_use::core::UseRwSignal
source · pub enum UseRwSignal<T: 'static> {
Separate(Signal<T>, WriteSignal<T>),
Combined(RwSignal<T>),
}
Variants§
Separate(Signal<T>, WriteSignal<T>)
Combined(RwSignal<T>)
Trait Implementations§
source§impl<T> Clone for UseRwSignal<T>
impl<T> Clone for UseRwSignal<T>
source§impl<T> Default for UseRwSignal<T>where
T: Default,
impl<T> Default for UseRwSignal<T>where
T: Default,
source§impl<T, RS> From<(RS, WriteSignal<T>)> for UseRwSignal<T>
impl<T, RS> From<(RS, WriteSignal<T>)> for UseRwSignal<T>
source§fn from(s: (RS, WriteSignal<T>)) -> Self
fn from(s: (RS, WriteSignal<T>)) -> Self
Converts to this type from the input type.
source§impl<T> From<RwSignal<T>> for UseRwSignal<T>
impl<T> From<RwSignal<T>> for UseRwSignal<T>
source§impl<T> SignalGet for UseRwSignal<T>where
T: Clone,
impl<T> SignalGet for UseRwSignal<T>where
T: Clone,
source§impl<T> SignalGetUntracked for UseRwSignal<T>where
T: Clone,
impl<T> SignalGetUntracked for UseRwSignal<T>where
T: Clone,
source§fn get_untracked(&self) -> T
fn get_untracked(&self) -> T
Gets the signal’s value without creating a dependency on the
current scope. Read more
source§fn try_get_untracked(&self) -> Option<T>
fn try_get_untracked(&self) -> Option<T>
Gets the signal’s value without creating a dependency on the
current scope. Returns [
Some(T)
] if the signal is still
valid, None
otherwise.source§impl<T> SignalSet for UseRwSignal<T>
impl<T> SignalSet for UseRwSignal<T>
source§impl<T> SignalSetUntracked<T> for UseRwSignal<T>
impl<T> SignalSetUntracked<T> for UseRwSignal<T>
source§fn set_untracked(&self, new_value: T)
fn set_untracked(&self, new_value: T)
Sets the signal’s value without notifying dependents.
source§fn try_set_untracked(&self, new_value: T) -> Option<T>
fn try_set_untracked(&self, new_value: T) -> Option<T>
Attempts to set the signal if it’s still valid. Returns
None
if the signal was set, [Some(T)
] otherwise.source§impl<T> SignalUpdate for UseRwSignal<T>
impl<T> SignalUpdate for UseRwSignal<T>
source§impl<T> SignalWith for UseRwSignal<T>
impl<T> SignalWith for UseRwSignal<T>
source§impl<T> SignalWithUntracked for UseRwSignal<T>
impl<T> SignalWithUntracked for UseRwSignal<T>
impl<T> Copy for UseRwSignal<T>
Auto Trait Implementations§
impl<T> Freeze for UseRwSignal<T>
impl<T> !RefUnwindSafe for UseRwSignal<T>
impl<T> !Send for UseRwSignal<T>
impl<T> !Sync for UseRwSignal<T>
impl<T> Unpin for UseRwSignal<T>where
T: Unpin,
impl<T> !UnwindSafe for UseRwSignal<T>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more