pub struct RadioSlice<Value, SliceValue, Channel>where
Channel: RadioChannel<Value>,
Value: 'static,
SliceValue: 'static,{ /* private fields */ }Expand description
Implementations§
Source§impl<Value, SliceValue, Channel> RadioSlice<Value, SliceValue, Channel>where
Channel: RadioChannel<Value>,
SliceValue: 'static,
impl<Value, SliceValue, Channel> RadioSlice<Value, SliceValue, Channel>where
Channel: RadioChannel<Value>,
SliceValue: 'static,
Sourcepub fn read_unchecked(&self) -> ReadRef<'static, SliceValue>
pub fn read_unchecked(&self) -> ReadRef<'static, SliceValue>
Read the slice value and subscribe to changes, with ’static lifetime.
Sourcepub fn peek_unchecked(&self) -> ReadRef<'static, SliceValue>
pub fn peek_unchecked(&self) -> ReadRef<'static, SliceValue>
Read the slice value without subscribing, with ’static lifetime.
Trait Implementations§
Source§impl<Value, SliceValue, Channel> Clone for RadioSlice<Value, SliceValue, Channel>where
Channel: RadioChannel<Value>,
SliceValue: 'static,
impl<Value, SliceValue, Channel> Clone for RadioSlice<Value, SliceValue, Channel>where
Channel: RadioChannel<Value>,
SliceValue: 'static,
Source§impl<T: 'static, Value: 'static, Channel: RadioChannel<Value> + 'static> IntoReadable<T> for RadioSlice<Value, T, Channel>
impl<T: 'static, Value: 'static, Channel: RadioChannel<Value> + 'static> IntoReadable<T> for RadioSlice<Value, T, Channel>
fn into_readable(self) -> Readable<T>
Source§impl<Value, SliceValue, Channel> PartialEq for RadioSlice<Value, SliceValue, Channel>where
Channel: RadioChannel<Value>,
SliceValue: 'static,
impl<Value, SliceValue, Channel> PartialEq for RadioSlice<Value, SliceValue, Channel>where
Channel: RadioChannel<Value>,
SliceValue: 'static,
Auto Trait Implementations§
impl<Value, SliceValue, Channel> Freeze for RadioSlice<Value, SliceValue, Channel>where
Channel: Freeze,
impl<Value, SliceValue, Channel> !RefUnwindSafe for RadioSlice<Value, SliceValue, Channel>
impl<Value, SliceValue, Channel> !Send for RadioSlice<Value, SliceValue, Channel>
impl<Value, SliceValue, Channel> !Sync for RadioSlice<Value, SliceValue, Channel>
impl<Value, SliceValue, Channel> Unpin for RadioSlice<Value, SliceValue, Channel>
impl<Value, SliceValue, Channel> !UnwindSafe for RadioSlice<Value, SliceValue, Channel>
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,
§impl<T> ComponentProps for T
impl<T> ComponentProps for T
§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