Struct Activator

Source
pub struct Activator<T, S, U>
where S: Slot<T>, U: Source<T>,
{ /* private fields */ }

Implementations§

Source§

impl<T, S, U> Activator<T, S, U>
where S: Slot<T>, U: Source<T>,

Source

pub fn new() -> Activator<T, S, U>

Source

pub fn activate(&self) -> Result<(), ActivateError<T>>

Trait Implementations§

Source§

impl<'a, T, S, U> Signal<T, S> for &'a mut Activator<T, S, U>
where S: Slot<T>, U: Source<T>,

Source§

type Connected = ()

Source§

fn connect_slot(self, slot: S)

Source§

impl<'a, T, S, U> Sink<T, U> for &'a mut Activator<T, S, U>
where S: Slot<T>, U: Source<T>,

Source§

type Connected = ()

Source§

fn connect_source(self, source: U)

Auto Trait Implementations§

§

impl<T, S, U> Freeze for Activator<T, S, U>
where S: Freeze, U: Freeze,

§

impl<T, S, U> RefUnwindSafe for Activator<T, S, U>

§

impl<T, S, U> Send for Activator<T, S, U>
where S: Send, U: Send, T: Send,

§

impl<T, S, U> Sync for Activator<T, S, U>
where S: Sync, U: Sync, T: Sync,

§

impl<T, S, U> Unpin for Activator<T, S, U>
where S: Unpin, U: Unpin, T: Unpin,

§

impl<T, S, U> UnwindSafe for Activator<T, S, U>
where S: UnwindSafe, U: UnwindSafe, T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.