pub struct ProviderRegistry { /* private fields */ }Implementations§
Source§impl ProviderRegistry
impl ProviderRegistry
pub async fn dispatch( &self, call: ProviderCall, ) -> Result<ProviderOutput, ProviderError>
pub async fn dispatch_with<F, Fut>(
&self,
call: ProviderCall,
invoke: F,
) -> Result<ProviderOutput, ProviderError>where
F: FnOnce(Arc<dyn Provider>, ProviderCall) -> Fut,
Fut: Future<Output = Result<ProviderOutput, ProviderError>>,
Sourcepub async fn dispatch_with_pre_input<P, F, Fut>(
&self,
call: ProviderCall,
pre_input: P,
invoke: F,
) -> Result<ProviderOutput, ProviderError>where
P: FnOnce(&ProviderCall) -> Result<(), ProviderError>,
F: FnOnce(Arc<dyn Provider>, ProviderCall) -> Fut,
Fut: Future<Output = Result<ProviderOutput, ProviderError>>,
pub async fn dispatch_with_pre_input<P, F, Fut>(
&self,
call: ProviderCall,
pre_input: P,
invoke: F,
) -> Result<ProviderOutput, ProviderError>where
P: FnOnce(&ProviderCall) -> Result<(), ProviderError>,
F: FnOnce(Arc<dyn Provider>, ProviderCall) -> Fut,
Fut: Future<Output = Result<ProviderOutput, ProviderError>>,
Dispatches with a host check after action/surface resolution and before provider-core validates the declared input limit and schema.
Source§impl ProviderRegistry
impl ProviderRegistry
pub fn builder() -> ProviderRegistryBuilder
pub fn snapshot(&self) -> Arc<RegistrySnapshot>
Trait Implementations§
Source§impl Clone for ProviderRegistry
impl Clone for ProviderRegistry
Source§fn clone(&self) -> ProviderRegistry
fn clone(&self) -> ProviderRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProviderRegistry
impl !RefUnwindSafe for ProviderRegistry
impl Send for ProviderRegistry
impl Sync for ProviderRegistry
impl Unpin for ProviderRegistry
impl UnsafeUnpin for ProviderRegistry
impl !UnwindSafe for ProviderRegistry
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