Skip to main content

PluginBuildId

Struct PluginBuildId 

Source
#[repr(C)]
pub struct PluginBuildId { pub schema_version: u32, pub nautilus_plugin_version: BorrowedStr<'static>, pub rustc_version: BorrowedStr<'static>, pub target_triple: BorrowedStr<'static>, pub build_profile: BorrowedStr<'static>, pub precision_mode: BorrowedStr<'static>, pub fixed_precision: u8, }
Expand description

Versioned build identifier carried by PluginManifest.

The fields identify the Nautilus plug-in crate and build environment that produced the manifest. The host validates the precision mode because it changes model type layout across the plug-in boundary. Other build fields remain diagnostic.

Fields§

§schema_version: u32

Build identifier schema version. Must equal PLUGIN_BUILD_ID_VERSION for the fields below.

§nautilus_plugin_version: BorrowedStr<'static>

Version of the nautilus-plugin crate used to build the plug-in.

§rustc_version: BorrowedStr<'static>

Rust compiler version reported by rustc --version, or empty when it was unavailable to the build script.

§target_triple: BorrowedStr<'static>

Cargo target triple, or empty when Cargo did not expose one.

§build_profile: BorrowedStr<'static>

Cargo build profile, or empty when Cargo did not expose one.

§precision_mode: BorrowedStr<'static>

Model fixed-point precision mode used to build the plug-in.

§fixed_precision: u8

Maximum fixed-point decimal precision used to build the plug-in.

Implementations§

Source§

impl PluginBuildId

Source

pub const fn current() -> Self

Returns the build identifier for the compiled nautilus-plugin crate.

Trait Implementations§

Source§

impl Clone for PluginBuildId

Source§

fn clone(&self) -> PluginBuildId

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for PluginBuildId

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.