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
sourceimpl Debug for VersionInfo
impl Debug for VersionInfo
sourceimpl Default for VersionInfo
impl Default for VersionInfo
sourceimpl Display for VersionInfo
impl Display for VersionInfo
sourceimpl PartialEq<VersionInfo> for VersionInfo
impl PartialEq<VersionInfo> for VersionInfo
sourcefn eq(&self, other: &VersionInfo) -> bool
fn eq(&self, other: &VersionInfo) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &VersionInfo) -> bool
fn ne(&self, other: &VersionInfo) -> bool
This method tests for !=.
impl Eq for VersionInfo
impl StructuralEq for VersionInfo
impl StructuralPartialEq for VersionInfo
Auto Trait Implementations
impl RefUnwindSafe for VersionInfo
impl Send for VersionInfo
impl Sync for VersionInfo
impl Unpin for VersionInfo
impl UnwindSafe for VersionInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more