Struct RadioSliceMut
pub struct RadioSliceMut<Value, SliceValue, Channel>where
Channel: RadioChannel<Value>,
Value: 'static,
SliceValue: 'static,{ /* private fields */ }Available on crate feature
radio only.Expand description
Implementations§
§impl<Value, SliceValue, Channel> RadioSliceMut<Value, SliceValue, Channel>where
Channel: RadioChannel<Value>,
SliceValue: 'static,
impl<Value, SliceValue, Channel> RadioSliceMut<Value, SliceValue, Channel>where
Channel: RadioChannel<Value>,
SliceValue: 'static,
pub fn read(&self) -> <UnsyncStorage as AnyStorage>::Ref<'_, SliceValue>
pub fn read(&self) -> <UnsyncStorage as AnyStorage>::Ref<'_, SliceValue>
Read the slice value and subscribe to changes.
pub fn read_unchecked(
&self,
) -> <UnsyncStorage as AnyStorage>::Ref<'static, SliceValue>
pub fn read_unchecked( &self, ) -> <UnsyncStorage as AnyStorage>::Ref<'static, SliceValue>
Read the slice value and subscribe to changes, with ’static lifetime.
pub fn peek(&self) -> <UnsyncStorage as AnyStorage>::Ref<'_, SliceValue>
pub fn peek(&self) -> <UnsyncStorage as AnyStorage>::Ref<'_, SliceValue>
Read the slice value without subscribing.
pub fn peek_unchecked(
&self,
) -> <UnsyncStorage as AnyStorage>::Ref<'static, SliceValue>
pub fn peek_unchecked( &self, ) -> <UnsyncStorage as AnyStorage>::Ref<'static, SliceValue>
Read the slice value without subscribing, with ’static lifetime.
pub fn write_unchecked(
&self,
) -> <UnsyncStorage as AnyStorage>::Mut<'static, SliceValue>
pub fn write_unchecked( &self, ) -> <UnsyncStorage as AnyStorage>::Mut<'static, SliceValue>
Write the slice value, with ’static lifetime.
pub fn write_unchecked_no_notify(
&self,
) -> <UnsyncStorage as AnyStorage>::Mut<'static, SliceValue>
pub fn write_unchecked_no_notify( &self, ) -> <UnsyncStorage as AnyStorage>::Mut<'static, SliceValue>
Write the slice value without notifying.
pub fn notify(&self)
pub fn notify(&self)
Notify listeners for this slice’s channel.
pub fn write(&mut self) -> <UnsyncStorage as AnyStorage>::Mut<'_, SliceValue>
pub fn write(&mut self) -> <UnsyncStorage as AnyStorage>::Mut<'_, SliceValue>
Write the slice value.
Trait Implementations§
§impl<Value, SliceValue, Channel> Clone for RadioSliceMut<Value, SliceValue, Channel>where
Channel: RadioChannel<Value>,
SliceValue: 'static,
impl<Value, SliceValue, Channel> Clone for RadioSliceMut<Value, SliceValue, Channel>where
Channel: RadioChannel<Value>,
SliceValue: 'static,
§fn clone(&self) -> RadioSliceMut<Value, SliceValue, Channel>
fn clone(&self) -> RadioSliceMut<Value, SliceValue, Channel>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl<T, Value, Channel> IntoReadable<T> for RadioSliceMut<Value, T, Channel>where
T: 'static,
Value: 'static,
Channel: RadioChannel<Value> + 'static,
impl<T, Value, Channel> IntoReadable<T> for RadioSliceMut<Value, T, Channel>where
T: 'static,
Value: 'static,
Channel: RadioChannel<Value> + 'static,
fn into_readable(self) -> Readable<T>
§impl<T, Value, Channel> IntoWritable<T> for RadioSliceMut<Value, T, Channel>where
T: 'static,
Value: 'static,
Channel: RadioChannel<Value> + 'static,
impl<T, Value, Channel> IntoWritable<T> for RadioSliceMut<Value, T, Channel>where
T: 'static,
Value: 'static,
Channel: RadioChannel<Value> + 'static,
fn into_writable(self) -> Writable<T>
§impl<Value, SliceValue, Channel> PartialEq for RadioSliceMut<Value, SliceValue, Channel>where
Channel: RadioChannel<Value>,
SliceValue: 'static,
impl<Value, SliceValue, Channel> PartialEq for RadioSliceMut<Value, SliceValue, Channel>where
Channel: RadioChannel<Value>,
SliceValue: 'static,
§fn eq(&self, other: &RadioSliceMut<Value, SliceValue, Channel>) -> bool
fn eq(&self, other: &RadioSliceMut<Value, SliceValue, Channel>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<Value, SliceValue, Channel> Copy for RadioSliceMut<Value, SliceValue, Channel>where
Channel: RadioChannel<Value> + Copy,
SliceValue: 'static,
Auto Trait Implementations§
impl<Value, SliceValue, Channel> Freeze for RadioSliceMut<Value, SliceValue, Channel>where
Channel: Freeze,
impl<Value, SliceValue, Channel> !RefUnwindSafe for RadioSliceMut<Value, SliceValue, Channel>
impl<Value, SliceValue, Channel> !Send for RadioSliceMut<Value, SliceValue, Channel>
impl<Value, SliceValue, Channel> !Sync for RadioSliceMut<Value, SliceValue, Channel>
impl<Value, SliceValue, Channel> Unpin for RadioSliceMut<Value, SliceValue, Channel>
impl<Value, SliceValue, Channel> !UnwindSafe for RadioSliceMut<Value, SliceValue, Channel>
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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§impl<T> ComponentProps for T
impl<T> ComponentProps for T
fn changed(&self, other: &(dyn ComponentProps + 'static)) -> bool
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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