Skip to main content

PdActorTypeInfo

Struct PdActorTypeInfo 

Source
#[repr(C)]
pub struct PdActorTypeInfo { pub type_name: *const u8, pub type_name_len: u32, pub config_schema: *const u8, pub config_schema_len: u32, }
Expand description

Metadata for a single actor type exported by a plugin.

All string pointers are not null-terminated; use the accompanying _len field for the byte count.

config_schema is optional: set to a null pointer and config_schema_len to 0 if the actor type accepts no configuration.

The pointed-to data must remain valid for the lifetime of the plugin.

Fields§

§type_name: *const u8

UTF-8 actor type name (e.g. b"echo") — not null-terminated.

§type_name_len: u32

Byte length of type_name.

§config_schema: *const u8

Optional UTF-8 JSON Schema for actor configuration, or null.

§config_schema_len: u32

Byte length of config_schema, or 0 if null.

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<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, 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.