pub struct Signal0 {
pub inner: SignalBase,
}
Expand description
A zero-argument signal. See Signal1 and Signal2 for different arities.
Fields
inner: SignalBase
Implementations
sourceimpl Signal0
impl Signal0
sourcepub fn new(listener: Option<Box<dyn Fn() + 'static, Global>>) -> Signal0
pub fn new(listener: Option<Box<dyn Fn() + 'static, Global>>) -> Signal0
@param listener An optional listener to immediately connect to the signal.
Trait Implementations
sourceimpl AsRef<SignalBase> for Signal0
impl AsRef<SignalBase> for Signal0
sourcefn as_ref(&self) -> &SignalBase
fn as_ref(&self) -> &SignalBase
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations
impl !RefUnwindSafe for Signal0
impl !Send for Signal0
impl !Sync for Signal0
impl Unpin for Signal0
impl !UnwindSafe for Signal0
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
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.