Skip to main content

AfterResolvePlugin

Trait AfterResolvePlugin 

Source
pub trait AfterResolvePlugin:
    Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required methods
    fn after_resolve_condition(&self) -> Vc<AfterResolvePluginCondition>;
    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<AfterResolvePluginCondition>

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

Source§

const LEN: usize = 1usize

Source§

const DEFAULTS: &[Option<&NativeFunction>]

Source§

impl VcValueTrait for Box<dyn AfterResolvePlugin>

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 AfterResolvePlugin

Source§

fn get_trait_type_id() -> TraitTypeId

Returns the type id of the trait object.
Source§

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

Source§

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

Available on debug-assertions enabled only.
Source§

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

Source§

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

Available on debug-assertions enabled only.
Source§

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

Available on debug-assertions enabled only.

Implementors§

Source§

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