baked_rc.rs (358B)
1 use kanit_common::error::Result; 2 use kanit_executor::block; 3 4 pub fn teardown_rc() -> Result<()> { 5 block(kanit_rc::teardown())?; 6 7 Ok(()) 8 } 9 10 pub fn initialize_rc() -> Result<()> { 11 block(kanit_rc::start())?; 12 13 Ok(()) 14 } 15 16 #[inline] 17 #[cfg(not(feature = "testing"))] 18 pub async fn event_rc(ev: Vec<u8>) -> Result<()> { 19 kanit_rc::event(ev).await 20 }