pub struct ReadSignal<T> { /* private fields */ }
Expand description
A getter only Signal
Trait Implementations§
Source§impl<T: Add<Output = T> + 'static> Add<T> for ReadSignal<T>
impl<T: Add<Output = T> + 'static> Add<T> for ReadSignal<T>
Source§impl<T: BitAnd<Output = T> + 'static> BitAnd<T> for ReadSignal<T>
impl<T: BitAnd<Output = T> + 'static> BitAnd<T> for ReadSignal<T>
Source§impl<T: BitOr<Output = T> + 'static> BitOr<T> for ReadSignal<T>
impl<T: BitOr<Output = T> + 'static> BitOr<T> for ReadSignal<T>
Source§impl<T: BitXor<Output = T> + 'static> BitXor<T> for ReadSignal<T>
impl<T: BitXor<Output = T> + 'static> BitXor<T> for ReadSignal<T>
Source§impl<T> Clone for ReadSignal<T>
impl<T> Clone for ReadSignal<T>
Source§impl<T: Display + 'static> Display for ReadSignal<T>
impl<T: Display + 'static> Display for ReadSignal<T>
Source§impl<T: Div<Output = T> + 'static> Div<T> for ReadSignal<T>
impl<T: Div<Output = T> + 'static> Div<T> for ReadSignal<T>
Source§impl<T: Mul<Output = T> + 'static> Mul<T> for ReadSignal<T>
impl<T: Mul<Output = T> + 'static> Mul<T> for ReadSignal<T>
Source§impl<T: 'static> Neg for ReadSignal<T>
impl<T: 'static> Neg for ReadSignal<T>
Source§impl<T: 'static> Not for ReadSignal<T>
impl<T: 'static> Not for ReadSignal<T>
Source§impl<T: PartialEq + 'static> PartialEq<T> for ReadSignal<T>
impl<T: PartialEq + 'static> PartialEq<T> for ReadSignal<T>
Source§impl<T> PartialEq for ReadSignal<T>
impl<T> PartialEq for ReadSignal<T>
Source§impl<T: Rem<Output = T> + 'static> Rem<T> for ReadSignal<T>
impl<T: Rem<Output = T> + 'static> Rem<T> for ReadSignal<T>
Source§impl<T: Shl<Output = T> + 'static> Shl<T> for ReadSignal<T>
impl<T: Shl<Output = T> + 'static> Shl<T> for ReadSignal<T>
Source§impl<T: Shr<Output = T> + 'static> Shr<T> for ReadSignal<T>
impl<T: Shr<Output = T> + 'static> Shr<T> for ReadSignal<T>
Source§impl<T: Clone> SignalGet<T> for ReadSignal<T>
impl<T: Clone> SignalGet<T> for ReadSignal<T>
Source§fn get_untracked(&self) -> Twhere
T: 'static,
fn get_untracked(&self) -> Twhere
T: 'static,
Clones and returns the current value stored in the Signal, but it doesn’t subscribe
to the current running effect.
Source§fn get(&self) -> Twhere
T: 'static,
fn get(&self) -> Twhere
T: 'static,
Clones and returns the current value stored in the Signal, and subscribes
to the current running effect to this Signal.
Source§fn try_get(&self) -> Option<T>where
T: 'static,
fn try_get(&self) -> Option<T>where
T: 'static,
Try to clone and return the current value stored in the Signal, and returns None
if it’s already disposed. It subscribes to the current running effect.
Source§fn try_get_untracked(&self) -> Option<T>where
T: 'static,
fn try_get_untracked(&self) -> Option<T>where
T: 'static,
Try to clone and return the current value stored in the Signal, and returns None
if it’s already disposed. It doesn’t subscribe to the current running effect.
Source§impl<T> SignalRead<T> for ReadSignal<T>
impl<T> SignalRead<T> for ReadSignal<T>
Source§fn read(&self) -> ReadSignalValue<T>where
T: 'static,
fn read(&self) -> ReadSignalValue<T>where
T: 'static,
Reads the data stored in the Signal to a RefCell, so that you can
borrow()
and access the data.
It subscribes to the current running effect.Source§fn read_untracked(&self) -> ReadSignalValue<T>where
T: 'static,
fn read_untracked(&self) -> ReadSignalValue<T>where
T: 'static,
Reads the data stored in the Signal to a RefCell, so that you can
borrow()
and access the data.
It doesn’t subscribe to the current running effect.Source§fn try_read(&self) -> Option<ReadSignalValue<T>>where
T: 'static,
fn try_read(&self) -> Option<ReadSignalValue<T>>where
T: 'static,
If the signal isn’t disposed,
reads the data stored in the Signal to a RefCell, so that you can
borrow()
and access the data.
It subscribes to the current running effect.Source§fn try_read_untracked(&self) -> Option<ReadSignalValue<T>>where
T: 'static,
fn try_read_untracked(&self) -> Option<ReadSignalValue<T>>where
T: 'static,
If the signal isn’t disposed,
reads the data stored in the Signal to a RefCell, so that you can
borrow()
and access the data.
It doesn’t subscribe to the current running effect.Source§impl<T> SignalTrack<T> for ReadSignal<T>
impl<T> SignalTrack<T> for ReadSignal<T>
Source§impl<T> SignalWith<T> for ReadSignal<T>
impl<T> SignalWith<T> for ReadSignal<T>
Source§fn with<O>(&self, f: impl FnOnce(&T) -> O) -> Owhere
T: 'static,
fn with<O>(&self, f: impl FnOnce(&T) -> O) -> Owhere
T: 'static,
Applies a closure to the current value stored in the Signal, and subscribes
to the current running effect to this Memo.
Source§fn with_untracked<O>(&self, f: impl FnOnce(&T) -> O) -> Owhere
T: 'static,
fn with_untracked<O>(&self, f: impl FnOnce(&T) -> O) -> Owhere
T: 'static,
Applies a closure to the current value stored in the Signal, but it doesn’t subscribe
to the current running effect.
Source§impl<T: Sub<Output = T> + 'static> Sub<T> for ReadSignal<T>
impl<T: Sub<Output = T> + 'static> Sub<T> for ReadSignal<T>
impl<T> Copy for ReadSignal<T>
impl<T> Eq for ReadSignal<T>
Auto Trait Implementations§
impl<T> Freeze for ReadSignal<T>
impl<T> RefUnwindSafe for ReadSignal<T>where
T: RefUnwindSafe,
impl<T> Send for ReadSignal<T>where
T: Send,
impl<T> Sync for ReadSignal<T>where
T: Sync,
impl<T> Unpin for ReadSignal<T>where
T: Unpin,
impl<T> UnwindSafe for ReadSignal<T>where
T: UnwindSafe,
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