Trait Endpoint

Source
pub trait Endpoint:
    Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required methods
    fn output(self: Vc<Self>) -> Vc<EndpointOutput>
       where Self: Sized;
    fn server_changed(self: Vc<Self>) -> Vc<Completion>
       where Self: Sized;
    fn client_changed(self: Vc<Self>) -> Vc<Completion>
       where Self: Sized;
    fn entries(self: Vc<Self>) -> Vc<GraphEntries>
       where Self: Sized;

    // Provided method
    fn additional_entries(
        self: Vc<Self>,
        _graph: Vc<ModuleGraph>,
    ) -> Vc<GraphEntries>
       where Self: Sized { ... }
}

Required Methods§

Source

fn output(self: Vc<Self>) -> Vc<EndpointOutput>
where Self: Sized,

Source

fn server_changed(self: Vc<Self>) -> Vc<Completion>
where Self: Sized,

Source

fn client_changed(self: Vc<Self>) -> Vc<Completion>
where Self: Sized,

Source

fn entries(self: Vc<Self>) -> Vc<GraphEntries>
where Self: Sized,

The entry modules for the modules graph.

Provided Methods§

Source

fn additional_entries( self: Vc<Self>, _graph: Vc<ModuleGraph>, ) -> Vc<GraphEntries>
where Self: Sized,

Additional entry modules for the module graph. This may read the module graph and return additional modules.

Trait Implementations§

Source§

impl VcValueTrait for Box<dyn Endpoint>

Source§

type ValueTrait = dyn Endpoint

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 Endpoint>> for Box<dyn Endpoint>

Source§

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

Source§

impl Upcast<Box<dyn Endpoint>> for Box<dyn Endpoint>

Source§

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

Implementors§

Source§

impl<T> Endpoint for T