Struct leptos_server::ArcLocalResource
source · pub struct ArcLocalResource<T> { /* private fields */ }Implementations§
Trait Implementations§
source§impl<T> Clone for ArcLocalResource<T>
impl<T> Clone for ArcLocalResource<T>
source§impl<T> DefinedAt for ArcLocalResource<T>
impl<T> DefinedAt for ArcLocalResource<T>
source§fn defined_at(&self) -> Option<&'static Location<'static>>
fn defined_at(&self) -> Option<&'static Location<'static>>
Returns the location at which the signal was defined. This is usually simply
None in
release mode.source§impl<T> IntoFuture for ArcLocalResource<T>where
T: Clone + 'static,
impl<T> IntoFuture for ArcLocalResource<T>where
T: Clone + 'static,
§type IntoFuture = AsyncDerivedFuture<T>
type IntoFuture = AsyncDerivedFuture<T>
Which kind of future are we turning this into?
source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
source§impl<T> ReactiveNode for ArcLocalResource<T>
impl<T> ReactiveNode for ArcLocalResource<T>
source§fn mark_dirty(&self)
fn mark_dirty(&self)
Notifies the source’s dependencies that it has changed.
source§fn mark_check(&self)
fn mark_check(&self)
Notifies the source’s dependencies that it may have changed.
source§fn mark_subscribers_check(&self)
fn mark_subscribers_check(&self)
Marks that all subscribers need to be checked.
source§fn update_if_necessary(&self) -> bool
fn update_if_necessary(&self) -> bool
Regenerates the value for this node, if needed, and returns whether
it has actually changed or not.
source§impl<T> ReadUntracked for ArcLocalResource<T>
impl<T> ReadUntracked for ArcLocalResource<T>
§type Value = ReadGuard<Option<T>, AsyncPlain<Option<T>>>
type Value = ReadGuard<Option<T>, AsyncPlain<Option<T>>>
The guard type that will be returned, which can be dereferenced to the value.
source§fn try_read_untracked(&self) -> Option<Self::Value>
fn try_read_untracked(&self) -> Option<Self::Value>
Returns the guard, or
None if the signal has already been disposed.source§fn read_untracked(&self) -> Self::Value
fn read_untracked(&self) -> Self::Value
Returns the guard. Read more
source§impl<T> Source for ArcLocalResource<T>
impl<T> Source for ArcLocalResource<T>
source§fn add_subscriber(&self, subscriber: AnySubscriber)
fn add_subscriber(&self, subscriber: AnySubscriber)
Adds a subscriber to this source’s list of dependencies.
source§fn remove_subscriber(&self, subscriber: &AnySubscriber)
fn remove_subscriber(&self, subscriber: &AnySubscriber)
Removes a subscriber from this source’s list of dependencies.
source§fn clear_subscribers(&self)
fn clear_subscribers(&self)
Remove all subscribers from this source’s list of dependencies.
source§impl<T> Subscriber for ArcLocalResource<T>
impl<T> Subscriber for ArcLocalResource<T>
source§fn add_source(&self, source: AnySource)
fn add_source(&self, source: AnySource)
Adds a subscriber to this subscriber’s list of dependencies.
source§fn clear_sources(&self, subscriber: &AnySubscriber)
fn clear_sources(&self, subscriber: &AnySubscriber)
Clears the set of sources for this subscriber.
source§impl<T: 'static> ToAnySource for ArcLocalResource<T>
impl<T: 'static> ToAnySource for ArcLocalResource<T>
source§fn to_any_source(&self) -> AnySource
fn to_any_source(&self) -> AnySource
Converts this type to its type-erased equivalent.
source§impl<T: 'static> ToAnySubscriber for ArcLocalResource<T>
impl<T: 'static> ToAnySubscriber for ArcLocalResource<T>
source§fn to_any_subscriber(&self) -> AnySubscriber
fn to_any_subscriber(&self) -> AnySubscriber
Converts this type to its type-erased equivalent.
Auto Trait Implementations§
impl<T> Freeze for ArcLocalResource<T>
impl<T> !RefUnwindSafe for ArcLocalResource<T>
impl<T> Send for ArcLocalResource<T>
impl<T> Sync for ArcLocalResource<T>
impl<T> Unpin for ArcLocalResource<T>
impl<T> !UnwindSafe for ArcLocalResource<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> Read for Twhere
T: Track + ReadUntracked,
impl<T> Read for Twhere
T: Track + ReadUntracked,
source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.
source§impl<T> With for Twhere
T: WithUntracked + Track,
impl<T> With for Twhere
T: WithUntracked + Track,
§type Value = <T as WithUntracked>::Value
type Value = <T as WithUntracked>::Value
The type of the value contained in the signal.
source§impl<T> WithUntracked for Twhere
T: DefinedAt + ReadUntracked,
impl<T> WithUntracked for Twhere
T: DefinedAt + ReadUntracked,
§type Value = <<T as ReadUntracked>::Value as Deref>::Target
type Value = <<T as ReadUntracked>::Value as Deref>::Target
The type of the value contained in the signal.
source§fn try_with_untracked<U>(
&self,
fun: impl FnOnce(&<T as WithUntracked>::Value) -> U,
) -> Option<U>
fn try_with_untracked<U>( &self, fun: impl FnOnce(&<T as WithUntracked>::Value) -> U, ) -> Option<U>
Applies the closure to the value, and returns the result,
or
None if the signal has already been disposed.