#[macro_export]
macro_rules! relay {
($beamable:expr, $tx:expr) => {{
let __frame = match $crate::utils::compose($crate::Version::V0)
.with_id(b"\0")
.with_order(0u64)
.with_message($beamable)
.build()
{
Ok(f) => f,
Err(_) => return None,
};
match $tx.send(__frame) {
Ok(_) => Some(()),
Err(_) => None,
}
}};
}