Trait AfterResolvePlugin

Source
pub trait AfterResolvePlugin:
    Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required methods
    fn after_resolve_condition(
        self: Vc<Self>,
    ) -> Vc<AfterResolvePluginCondition>
       where Self: Sized;
    fn after_resolve(
        self: Vc<Self>,
        fs_path: FileSystemPath,
        lookup_path: FileSystemPath,
        reference_type: ReferenceType,
        request: Vc<Request>,
    ) -> Vc<ResolveResultOption>
       where Self: Sized;
}

Required Methods§

Source

fn after_resolve_condition(self: Vc<Self>) -> Vc<AfterResolvePluginCondition>
where Self: Sized,

A condition which determines if the hooks gets called.

Source

fn after_resolve( self: Vc<Self>, fs_path: FileSystemPath, lookup_path: FileSystemPath, reference_type: ReferenceType, request: Vc<Request>, ) -> Vc<ResolveResultOption>
where Self: Sized,

This hook gets called when a full filepath has been resolved and the condition matches. If a value is returned it replaces the resolve result.

Trait Implementations§

Source§

impl VcValueTrait for Box<dyn AfterResolvePlugin>

Source§

type ValueTrait = dyn AfterResolvePlugin

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

Source§

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

Source§

impl Upcast<Box<dyn AfterResolvePlugin>> for Box<dyn AfterResolvePlugin>

Source§

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

Implementors§