Skip to main content

Core

Struct Core 

Source
pub struct Core { /* private fields */ }
Expand description

Per-instance PixelFlow host state.

Implementations§

Source§

impl Core

Source

pub fn new() -> Result<Self>

Creates a core using default configuration.

Source

pub fn with_config(config: CoreConfig) -> Result<Self>

Creates a core using explicit configuration.

Source

pub const fn registry(&self) -> &FilterRegistry

Returns immutable registry access.

Source

pub const fn registry_mut(&mut self) -> &mut FilterRegistry

Returns mutable registry access for in-process registration.

Source

pub const fn config(&self) -> &CoreConfig

Returns core configuration.

Source

pub fn loaded_plugins(&self) -> &[LoadedPlugin]

Returns plugins loaded during core construction.

Source

pub const fn render_engine(&self) -> RenderEngine

Creates render engine using this core’s worker configuration.

Source

pub fn render_ordered( &self, graph: Graph, executors: RenderExecutorMap, options: RenderOptions, ) -> Result<OrderedRender>

Starts blocking ordered rendering using this core’s worker configuration.

Auto Trait Implementations§

§

impl Freeze for Core

§

impl !RefUnwindSafe for Core

§

impl Send for Core

§

impl Sync for Core

§

impl Unpin for Core

§

impl UnsafeUnpin for Core

§

impl !UnwindSafe for Core

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.