Macro tokio_util::either::delegate_call

source ยท
macro_rules! delegate_call {
    ($self:ident.$method:ident($($args:ident),+)) => { ... };
}
Expand description

A small helper macro which reduces amount of boilerplate in the actual trait method implementation. It takes an invocation of method as an argument (e.g. self.poll(cx)), and redirects it to either enum variant held in self.