Struct components::engine::d2::util::SignalBase
source · [−]pub struct SignalBase { /* private fields */ }
Implementations
sourceimpl SignalBase
impl SignalBase
pub fn new(listener: Option<Dynamic>) -> SignalBase
sourcepub fn has_listeners(&self) -> bool
pub fn has_listeners(&self) -> bool
Whether this signal has at least one listener.
pub fn disconnect(&self, conn: &SignalConnection)
pub fn defer(&self, function: Box<dyn Fn() + 'static, Global>)
pub fn will_emit(&self) -> Option<SignalConnection>
pub fn did_emit(&self, head: SignalConnection)
pub fn list_add(&self, conn: SignalConnection, prioritize: bool)
pub fn list_remove(&self, conn: &SignalConnection)
pub fn dispatching(&self) -> bool
Trait Implementations
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.
sourceimpl<A, B> AsRef<SignalBase> for Signal2<A, B>
impl<A, B> AsRef<SignalBase> for Signal2<A, B>
sourcefn as_ref(&self) -> &SignalBase
fn as_ref(&self) -> &SignalBase
Converts this type into a shared reference of the (usually inferred) input type.
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.
sourceimpl Clone for SignalBase
impl Clone for SignalBase
sourcefn clone(&self) -> SignalBase
fn clone(&self) -> SignalBase
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SignalBase
impl Debug for SignalBase
sourceimpl Default for SignalBase
impl Default for SignalBase
sourcefn default() -> SignalBase
fn default() -> SignalBase
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for SignalBase
impl !Send for SignalBase
impl !Sync for SignalBase
impl Unpin for SignalBase
impl !UnwindSafe for SignalBase
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
.