#[derive(Unbind)]
{
// Attributes available to this derive:
#[binding]
}
Expand description
Derive a custom implementation of [hyperactor::message::Unbind
] trait for
a struct or enum. This macro is normally used in tandem with [fn derive_bind
]
to make the applied struct or enum castable.
Specifically, the derived implementation iterates through fields annoated
with #[binding(include)]
based on their order of declaration in the struct
or enum. These fields’ types must implement Unbind
trait as well. During
the iteration, parameters from these fields are extracted and stored in
bindings
.
§Example
See [fn derive_bind
]’s documentation for examples.