Skip to main content

IntoInner

Trait IntoInner 

Source
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§

Source

type Value

The type of the value contained in the signal.

Required Methods§

Source

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.

Implementors§

Source§

impl<T> IntoInner for ArcReadSignal<T>

Source§

type Value = T

Source§

impl<T> IntoInner for ArcRwSignal<T>

Source§

type Value = T

Source§

impl<T> IntoInner for ArcStoredValue<T>

Source§

type Value = T

Source§

impl<T> IntoInner for ArcWriteSignal<T>

Source§

type Value = T

Source§

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

Source§

type Value = T

Source§

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

Source§

type Value = T

Source§

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

Source§

type Value = T

Source§

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

Source§

type Value = T

Source§

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

Source§

type Value = T