pub struct SignalSurrogate<T>(/* private fields */);Implementations§
Source§impl<T> SignalSurrogate<T>where
for<'b> &'b T: Surrogated,
impl<T> SignalSurrogate<T>where
for<'b> &'b T: Surrogated,
pub fn read(&self) -> <&T as Surrogated>::Surrogate
Source§impl<T> SignalSurrogate<T>where
T: Surrogated + Clone,
impl<T> SignalSurrogate<T>where
T: Surrogated + Clone,
pub fn get(&self) -> <T as Surrogated>::Surrogate
Source§impl<T> SignalSurrogate<T>where
T: Surrogated,
impl<T> SignalSurrogate<T>where
T: Surrogated,
Source§impl SignalSurrogate<bool>
impl SignalSurrogate<bool>
Source§impl SignalSurrogate<f64>
impl SignalSurrogate<f64>
Source§impl SignalSurrogate<String>
impl SignalSurrogate<String>
Sourcepub fn push_str(&self, _s: impl Deref<Target = StrSurrogate>)
pub fn push_str(&self, _s: impl Deref<Target = StrSurrogate>)
Appends a string to the end of the value.
The argument is anything that dereferences to a string, so both a
borrowed &str and an owned String work. The owned form is what an
event field yields: Event::target.value is a String, so
message.push_str(e.target.value) is the common call.
§Panics
Always panics; signal writes can only occur in client-side expressions.
Trait Implementations§
Source§impl<T> RefCast for SignalSurrogate<T>
impl<T> RefCast for SignalSurrogate<T>
Source§impl<T> Serialize for SignalSurrogate<T>
impl<T> Serialize for SignalSurrogate<T>
Source§impl<T> Surrogate for SignalSurrogate<T>
impl<T> Surrogate for SignalSurrogate<T>
Source§impl<'__lifetime, T> Surrogate for &'__lifetime SignalSurrogate<T>
impl<'__lifetime, T> Surrogate for &'__lifetime SignalSurrogate<T>
Auto Trait Implementations§
impl<T> Freeze for SignalSurrogate<T>
impl<T> RefUnwindSafe for SignalSurrogate<T>where
Signal<T>: RefUnwindSafe,
impl<T> Send for SignalSurrogate<T>
impl<T> Sync for SignalSurrogate<T>
impl<T> Unpin for SignalSurrogate<T>
impl<T> UnsafeUnpin for SignalSurrogate<T>where
Signal<T>: UnsafeUnpin,
impl<T> UnwindSafe for SignalSurrogate<T>where
Signal<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