Struct PluginEventRouteResolver
pub struct PluginEventRouteResolver { /* private fields */ }Expand description
Live host resolver for plugin event ownership and sender authorization.
The closure is invoked once per submission. It should read canonical live config at that point and return only a transient resolved view.
Implementations§
Source§impl PluginEventRouteResolver
impl PluginEventRouteResolver
Sourcepub fn new(
resolve: impl Fn(&PluginInstanceId, &ChannelMessage) -> Result<PluginEventResolution, PluginEventError> + Send + Sync + 'static,
) -> Self
pub fn new( resolve: impl Fn(&PluginInstanceId, &ChannelMessage) -> Result<PluginEventResolution, PluginEventError> + Send + Sync + 'static, ) -> Self
Build a live route and authorization resolver.
Trait Implementations§
Source§impl Clone for PluginEventRouteResolver
impl Clone for PluginEventRouteResolver
Source§fn clone(&self) -> PluginEventRouteResolver
fn clone(&self) -> PluginEventRouteResolver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for PluginEventRouteResolver
impl !UnwindSafe for PluginEventRouteResolver
impl Freeze for PluginEventRouteResolver
impl Send for PluginEventRouteResolver
impl Sync for PluginEventRouteResolver
impl Unpin for PluginEventRouteResolver
impl UnsafeUnpin for PluginEventRouteResolver
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