Struct Core
pub struct Core { /* private fields */ }Expand description
Per-instance PixelFlow host state.
Implementations§
§impl Core
impl Core
pub fn new() -> Result<Core, PixelFlowError>
pub fn new() -> Result<Core, PixelFlowError>
Creates a core using default configuration.
pub fn with_config(config: CoreConfig) -> Result<Core, PixelFlowError>
pub fn with_config(config: CoreConfig) -> Result<Core, PixelFlowError>
Creates a core using explicit configuration.
pub const fn registry(&self) -> &FilterRegistry
pub const fn registry(&self) -> &FilterRegistry
Returns immutable registry access.
pub const fn registry_mut(&mut self) -> &mut FilterRegistry
pub const fn registry_mut(&mut self) -> &mut FilterRegistry
Returns mutable registry access for in-process registration.
pub const fn config(&self) -> &CoreConfig
pub const fn config(&self) -> &CoreConfig
Returns core configuration.
pub fn loaded_plugins(&self) -> &[LoadedPlugin]
pub fn loaded_plugins(&self) -> &[LoadedPlugin]
Returns plugins loaded during core construction.
pub const fn render_engine(&self) -> RenderEngine
pub const fn render_engine(&self) -> RenderEngine
Creates render engine using this core’s worker configuration.
pub fn render_ordered(
&self,
graph: Graph,
executors: RenderExecutorMap,
options: RenderOptions,
) -> Result<OrderedRender, PixelFlowError>
pub fn render_ordered( &self, graph: Graph, executors: RenderExecutorMap, options: RenderOptions, ) -> Result<OrderedRender, PixelFlowError>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more