Struct coprocessor_plugin_api::util::BuildInfo[][src]

#[repr(C)]pub struct BuildInfo {
    pub api_version: &'static str,
    pub target: &'static str,
    pub rustc: &'static str,
}

Automatically collected build information about the plugin that is exposed from the library.

Will be automatically created when using declare_plugin!(...) and will be used by TiKV when a plugin is loaded to determine whether there are compilation mismatches.

Fields

api_version: &'static str

Version of the coprocessor_plugin_api crate that was used to compile this plugin.

target: &'static str

Target triple for which platform this plugin was compiled.

rustc: &'static str

Version of the Rust compiler that was used for compilation.

Implementations

impl BuildInfo[src]

pub const fn get() -> Self[src]

Trait Implementations

impl Clone for BuildInfo[src]

impl Debug for BuildInfo[src]

impl Eq for BuildInfo[src]

impl PartialEq<BuildInfo> for BuildInfo[src]

impl StructuralEq for BuildInfo[src]

impl StructuralPartialEq for BuildInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for BuildInfo

impl Send for BuildInfo

impl Sync for BuildInfo

impl Unpin for BuildInfo

impl UnwindSafe for BuildInfo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.