pub type RutabagaDebugHandler = RutabagaHandler<RutabagaDebug>;

Aliased Type§

struct RutabagaDebugHandler {
    closure: Arc<dyn Fn(RutabagaDebug) + Send + Sync>,
}

Fields§

§closure: Arc<dyn Fn(RutabagaDebug) + Send + Sync>

Implementations

source§

impl<S> RutabagaHandler<S>
where S: Send + Sync + Clone + 'static,

source

pub fn new(closure: impl Fn(S) + Send + Sync + 'static) -> RutabagaHandler<S>

source

pub fn call(&self, data: S)

Trait Implementations

source§

impl<S: Clone> Clone for RutabagaHandler<S>

source§

fn clone(&self) -> RutabagaHandler<S>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<S> Debug for RutabagaHandler<S>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more