Struct indradb_plugin_host::VersionInfo
source · Expand description
Represents the rustc compiler version and the plugin interface version.
When a plugin is loaded, the VersionInfo of the server is
cross-referenced against the VersionInfo exported by the plugin. If they
don’t match, the plugin fails.
The rustc version must match exactly because rust doesn’t expose a stable ABI, and there is a risk of it changing in any version. The plugin interface version is also exposed to allow for changes to the interface in the future. If the interface is changed, this value should be incremented.
Fields§
§rustc: StringThe version of rustc used to compile. This must match because rust doesn’t expose a stable ABI, and there is a risk of it changing in any version.
plugin_interface: u8The plugin interface version is also exposed to allow for changes to the interface in the future.
Trait Implementations§
source§impl Debug for VersionInfo
impl Debug for VersionInfo
source§impl Default for VersionInfo
impl Default for VersionInfo
source§impl Display for VersionInfo
impl Display for VersionInfo
source§impl PartialEq<VersionInfo> for VersionInfo
impl PartialEq<VersionInfo> for VersionInfo
source§fn eq(&self, other: &VersionInfo) -> bool
fn eq(&self, other: &VersionInfo) -> bool
self and other values to be equal, and is used
by ==.