Skip to main content

NodeBackend

Trait NodeBackend 

Source
pub trait NodeBackend:
    Sealed
    + Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required methods
    fn runtime_module_path(&self) -> RcStr;
    fn globals_module_path(&self) -> RcStr;
    fn create_pool(&self, options: CreatePoolOptions) -> CreatePoolFuture;
    fn scale_down(&self) -> Result<()>;
    fn scale_zero(&self) -> Result<()>;
}

Required Methods§

Trait Implementations§

Source§

impl TraitVtablePrototype for Box<dyn NodeBackend>

Source§

const LEN: usize = 0usize

Source§

const DEFAULTS: &[Option<&NativeFunction>]

Source§

impl VcValueTrait for Box<dyn NodeBackend>

Source§

const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>

The per-trait vtable registry, populated at program load by #[ctor::ctor] functions emitted by each #[turbo_tasks::value_impl] expansion. Read more
Source§

type ValueTrait = dyn NodeBackend

Source§

fn get_trait_type_id() -> TraitTypeId

Returns the type id of the trait object.
Source§

impl Dynamic<Box<dyn NodeBackend>> for Box<dyn NodeBackend>

Source§

impl Dynamic<Box<dyn Sealed>> for Box<dyn NodeBackend>

Source§

impl Dynamic<Box<dyn ValueDebug>> for Box<dyn NodeBackend>

Available on debug-assertions enabled only.
Source§

impl Upcast<Box<dyn NodeBackend>> for Box<dyn NodeBackend>

Source§

impl Upcast<Box<dyn Sealed>> for Box<dyn NodeBackend>

Source§

impl Upcast<Box<dyn ValueDebug>> for Box<dyn NodeBackend>

Available on debug-assertions enabled only.
Source§

impl UpcastStrict<Box<dyn Sealed>> for Box<dyn NodeBackend>

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn NodeBackend>

Available on debug-assertions enabled only.

Implementors§

Source§

impl<T> NodeBackend for T
where T: Dynamic<Box<dyn NodeBackend>> + Sealed + Send + Sync + NonLocalValue + ValueDebug,