Struct futures_signals::signal::ReadOnlyMutable
source · [−]#[repr(transparent)]pub struct ReadOnlyMutable<A>(_);
Implementations
sourceimpl<A> ReadOnlyMutable<A>
impl<A> ReadOnlyMutable<A>
pub fn lock_ref(&self) -> MutableLockRef<'_, A>
pub fn signal_ref<B, F>(&self, f: F) -> MutableSignalRef<A, F> where
F: FnMut(&A) -> B,
sourceimpl<A: Copy> ReadOnlyMutable<A>
impl<A: Copy> ReadOnlyMutable<A>
pub fn get(&self) -> A
pub fn signal(&self) -> MutableSignal<A>
sourceimpl<A: Clone> ReadOnlyMutable<A>
impl<A: Clone> ReadOnlyMutable<A>
pub fn get_cloned(&self) -> A
pub fn signal_cloned(&self) -> MutableSignalCloned<A>
Trait Implementations
sourceimpl<A> Clone for ReadOnlyMutable<A>
impl<A> Clone for ReadOnlyMutable<A>
Auto Trait Implementations
impl<A> RefUnwindSafe for ReadOnlyMutable<A>
impl<A> Send for ReadOnlyMutable<A> where
A: Send + Sync,
impl<A> Sync for ReadOnlyMutable<A> where
A: Send + Sync,
impl<A> Unpin for ReadOnlyMutable<A>
impl<A> UnwindSafe for ReadOnlyMutable<A>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more