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 VcValueTrait for Box<dyn NodeBackend>

Source§

type ValueTrait = dyn NodeBackend

Source§

fn get_trait_type_id() -> TraitTypeId

Returns the type id of the trait object.
Source§

fn get_impl_vtables() -> &'static VTableRegistry<Self::ValueTrait>

Returns the vtable for an implementation of this trait. Panics if ValueTypeId does not implement the trait.
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>

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>

Source§

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

Source§

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

Implementors§

Source§

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