Enum leptos_use::core::MaybeRwSignal
source · pub enum MaybeRwSignal<T>where
T: 'static,{
Static(T),
DynamicRw(Signal<T>, WriteSignal<T>),
DynamicRead(Signal<T>),
}
Variants§
Implementations§
source§impl<T: Clone> MaybeRwSignal<T>
impl<T: Clone> MaybeRwSignal<T>
pub fn into_signal(self) -> (Signal<T>, WriteSignal<T>)
Trait Implementations§
source§impl<T: Clone> Clone for MaybeRwSignal<T>
impl<T: Clone> Clone for MaybeRwSignal<T>
source§impl<T: Debug> Debug for MaybeRwSignal<T>
impl<T: Debug> Debug for MaybeRwSignal<T>
source§impl<T: Default> Default for MaybeRwSignal<T>
impl<T: Default> Default for MaybeRwSignal<T>
source§impl<T> From<(ReadSignal<T>, WriteSignal<T>)> for MaybeRwSignal<T>
impl<T> From<(ReadSignal<T>, WriteSignal<T>)> for MaybeRwSignal<T>
source§fn from(s: (ReadSignal<T>, WriteSignal<T>)) -> Self
fn from(s: (ReadSignal<T>, WriteSignal<T>)) -> Self
Converts to this type from the input type.
source§impl<T> From<(Signal<T>, WriteSignal<T>)> for MaybeRwSignal<T>
impl<T> From<(Signal<T>, WriteSignal<T>)> for MaybeRwSignal<T>
source§fn from(s: (Signal<T>, WriteSignal<T>)) -> Self
fn from(s: (Signal<T>, WriteSignal<T>)) -> Self
Converts to this type from the input type.
source§impl<T> From<Memo<T>> for MaybeRwSignal<T>
impl<T> From<Memo<T>> for MaybeRwSignal<T>
source§impl<T> From<ReadSignal<T>> for MaybeRwSignal<T>
impl<T> From<ReadSignal<T>> for MaybeRwSignal<T>
source§fn from(s: ReadSignal<T>) -> Self
fn from(s: ReadSignal<T>) -> Self
Converts to this type from the input type.
source§impl<T> From<RwSignal<T>> for MaybeRwSignal<T>
impl<T> From<RwSignal<T>> for MaybeRwSignal<T>
source§impl<T> From<Signal<T>> for MaybeRwSignal<T>
impl<T> From<Signal<T>> for MaybeRwSignal<T>
source§impl<T> From<T> for MaybeRwSignal<T>
impl<T> From<T> for MaybeRwSignal<T>
impl<T: Copy> Copy for MaybeRwSignal<T>
Auto Trait Implementations§
impl<T> Freeze for MaybeRwSignal<T>where
T: Freeze,
impl<T> !RefUnwindSafe for MaybeRwSignal<T>
impl<T> !Send for MaybeRwSignal<T>
impl<T> !Sync for MaybeRwSignal<T>
impl<T> Unpin for MaybeRwSignal<T>where
T: Unpin,
impl<T> !UnwindSafe for MaybeRwSignal<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<CustErr, T, Request> FromReq<Streaming, Request, CustErr> for T
impl<CustErr, T, Request> FromReq<Streaming, Request, CustErr> for T
source§async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the arguments from a request.
source§impl<CustErr, T, Request> FromReq<StreamingText, Request, CustErr> for T
impl<CustErr, T, Request> FromReq<StreamingText, Request, CustErr> for T
source§async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the arguments from a request.
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