pub struct Signal0 {
pub inner: SignalBase,
}Expand description
A zero-argument signal. See Signal1 and Signal2 for different arities.
Fields
inner: SignalBaseImplementations
sourceimpl Signal0
impl Signal0
sourcepub fn new(listener: Option<Listener0>) -> Self
pub fn new(listener: Option<Listener0>) -> Self
@param listener An optional listener to immediately connect to the signal.
sourcepub fn connect(&self, listener: Listener0, prioritize: bool) -> SignalConnection
pub fn connect(&self, listener: Listener0, prioritize: bool) -> SignalConnection
Connects a listener to this signal. @param prioritize True if this listener should fire before others. @returns A SignalConnection, that can be disposed to remove the listener.
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
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn 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.