Trait calloop::sources::ErasedDispatcher

source ·
trait ErasedDispatcher<'a, S, Data> {
    // Required methods
    fn as_source_ref(&self) -> Ref<'_, S>;
    fn as_source_mut(&self) -> RefMut<'_, S>;
    fn into_source_inner(self: Rc<Self>) -> S;
    fn into_event_dispatcher(
        self: Rc<Self>,
    ) -> Rc<dyn EventDispatcher<Data> + 'a>;
}

Required Methods§

source

fn as_source_ref(&self) -> Ref<'_, S>

source

fn as_source_mut(&self) -> RefMut<'_, S>

source

fn into_source_inner(self: Rc<Self>) -> S

source

fn into_event_dispatcher(self: Rc<Self>) -> Rc<dyn EventDispatcher<Data> + 'a>

Implementations on Foreign Types§

source§

impl<'a, S, Data, F> ErasedDispatcher<'a, S, Data> for RefCell<DispatcherInner<S, F>>
where S: EventSource + 'a, F: FnMut(S::Event, &mut S::Metadata, &mut Data) -> S::Ret + 'a,

source§

fn as_source_ref(&self) -> Ref<'_, S>

source§

fn as_source_mut(&self) -> RefMut<'_, S>

source§

fn into_source_inner(self: Rc<Self>) -> S

source§

fn into_event_dispatcher(self: Rc<Self>) -> Rc<dyn EventDispatcher<Data> + 'a>
where S: 'a,

Implementors§