pub struct Signal1<A> {
pub inner: SignalBase,
/* private fields */
}
Expand description
A one-argument signal. See Signal0 and Signal2 for different arities.
Fields
inner: SignalBase
Implementations
sourceimpl<A> Signal1<A>
impl<A> Signal1<A>
sourcepub fn new(listener: Option<Listener1<A>>) -> Self
pub fn new(listener: Option<Listener1<A>>) -> Self
@param listener An optional listener to immediately connect to the signal.
sourcepub fn connect(
&self,
listener: Listener1<A>,
prioritize: bool
) -> SignalConnection
pub fn connect(
&self,
listener: Listener1<A>,
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<A> AsRef<Signal1<A>> for HeavySignal1<A>
impl<A> AsRef<Signal1<A>> for HeavySignal1<A>
sourceimpl<A> AsRef<SignalBase> for Signal1<A>
impl<A> AsRef<SignalBase> for Signal1<A>
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<A> !RefUnwindSafe for Signal1<A>
impl<A> !Send for Signal1<A>
impl<A> !Sync for Signal1<A>
impl<A> Unpin for Signal1<A> where
A: Unpin,
impl<A> !UnwindSafe for Signal1<A>
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
.