Skip to main content

IntoInner

Trait IntoInner 

pub trait IntoInner {
    type Value;

    // Required method
    fn into_inner(self) -> Option<Self::Value>;
}
Expand description

Turns a signal back into a raw value.

Required Associated Typesยง

type Value

The type of the value contained in the signal.

Required Methodsยง

fn into_inner(self) -> Option<Self::Value>

Returns the inner value if this is the only reference to the signal. Otherwise, returns None and drops this reference.

ยงPanics

Panics if the inner lock is poisoned.

Dyn Compatibilityยง

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementorsยง

ยง

impl<T, S> IntoInner for ArenaItem<T, S>
where S: Storage<T>,

ยง

type Value = T

ยง

impl<T, S> IntoInner for ReadSignal<T, S>
where S: Storage<ArcReadSignal<T>>,

ยง

type Value = T

ยง

impl<T, S> IntoInner for RwSignal<T, S>
where S: Storage<ArcRwSignal<T>>,

ยง

type Value = T

ยง

impl<T, S> IntoInner for StoredValue<T, S>
where T: 'static, S: Storage<ArcStoredValue<T>>,

ยง

type Value = T

ยง

impl<T, S> IntoInner for WriteSignal<T, S>
where S: Storage<ArcWriteSignal<T>>,

ยง

type Value = T

ยง

impl<T> IntoInner for ArcReadSignal<T>

ยง

type Value = T

ยง

impl<T> IntoInner for ArcRwSignal<T>

ยง

type Value = T

ยง

impl<T> IntoInner for ArcStoredValue<T>

ยง

type Value = T

ยง

impl<T> IntoInner for ArcWriteSignal<T>

ยง

type Value = T