// This is just a wrapper function to expose queue functionality
// functionality is broken out so we can use the core logic inside our dispatcher thread
// we specify static here so rust doesn't have to try to guess the lifetime, and send to allow access between threads
This is just a wrapper function to expose queue functionality
functionality is broken out so we can use the core logic inside our dispatcher thread
we specify static here so rust doesn't have to try to guess the lifetime, and send to allow access between threads
This is just a wrapper function to expose queue functionality functionality is broken out so we can use the core logic inside our dispatcher thread we specify static here so rust doesn ' t have to try to guess the lifetime and send to allow access between threads
pub fn push<T: commands::Operation + Send + 'static>(&self, item: T) {
        //queue_push(&self.queue.clone(), item);
        //let boxeditem: Box::<dyn commands::Operation + Send + 'static> = Box::from(item);
        let boxeditem = Box::new(item);
        //queue_push(&self.queue.clone(), item);
        //queue_push(&self.queue.clone(), boxeditem);
        //queue_push(&self.queue.clone(), boxeditem);
        queue_push(&self.queue.clone(), boxeditem);
    }
pub fn push < T : commands :: Operation + Send + ' static > ( & self , item : T ) { //queue_push(&self.queue.clone(), item); //let boxeditem: Box::<dyn commands::Operation + Send + 'static> = Box::from(item); let boxeditem = Box :: new ( item ) ; //queue_push(&self.queue.clone(), item); //queue_push(&self.queue.clone(), boxeditem); //queue_push(&self.queue.clone(), boxeditem); queue_push ( & self . queue . clone ( ) , boxeditem ) ; }
This is just a wrapper function to expose queue functionality
functionality is broken out so we can use the core logic inside our dispatcher thread
we specify static here so rust doesn't have to try to guess the lifetime, and send to allow access between threads
This is just a wrapper function to expose queue functionality functionality is broken out so we can use the core logic inside our dispatcher thread we specify static here so rust doesn ' t have to try to guess the lifetime and send to allow access between threads
&self
item
T