pub trait Passport {
fn get_passport(&self) -> &'static som_passport_t;
}
Expand description
Something that has a SOM passport.
However, since we can’t call extern functions in static object initialization,
in order to use atom("name")
we have to initializa the passport in run time
and return a reference to it via Box::leak()
.
Required methods
fn get_passport(&self) -> &'static som_passport_t
fn get_passport(&self) -> &'static som_passport_t
A static reference to the passport that describes an asset.