pub struct InputProvider<C: Contract> { /* private fields */ }Expand description
Bridges a selected input contract into the ordinary provider/consumer graph.
Consumers declare Requirement::on(provider.handle()) as for any renderer.
Implementations§
Source§impl<C: Contract> InputProvider<C>
impl<C: Contract> InputProvider<C>
Trait Implementations§
Source§impl<C: Contract, L: Language> Plugin<L> for InputProvider<C>
impl<C: Contract, L: Language> Plugin<L> for InputProvider<C>
Source§fn supports_native_input(&self) -> bool
fn supports_native_input(&self) -> bool
Opt in when this plugin reads protocol contracts instead of the legacy HTTP context.
Native generation skips packages containing HTTP-only plugins before loading sources.
fn kind(&self) -> &'static str
fn meta(&self) -> &Meta
fn provides(&self) -> Vec<Provision>
fn generate(&self, cx: &mut PluginContext<'_, L>) -> Result<()>
Source§fn phase(&self) -> PluginPhase
fn phase(&self) -> PluginPhase
Selects the plugin lifecycle phase. The default honors
Self::enforce
so a post plugin only needs to override that shorthand.fn requires(&self) -> Vec<Requirement>
Auto Trait Implementations§
impl<C> !RefUnwindSafe for InputProvider<C>
impl<C> !UnwindSafe for InputProvider<C>
impl<C> Freeze for InputProvider<C>
impl<C> Send for InputProvider<C>
impl<C> Sync for InputProvider<C>
impl<C> Unpin for InputProvider<C>
impl<C> UnsafeUnpin for InputProvider<C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more