Struct PluginWebhookRegistry
pub struct PluginWebhookRegistry { /* private fields */ }Expand description
Path-to-sink view shared by the gateway and channel supervisor.
The map is replaced as one unit after every claimant has been validated, so a partial rebuild or duplicate path cannot leave a mixed-generation route set effective.
Implementations§
Source§impl PluginWebhookRegistry
impl PluginWebhookRegistry
Sourcepub fn start_generation(&self) -> PluginWebhookRegistryLease
pub fn start_generation(&self) -> PluginWebhookRegistryLease
Begin a new empty route generation owned by the returned lease.
Sourcepub fn get(&self, path: &str) -> Option<Sender<RawWebhook>>
pub fn get(&self, path: &str) -> Option<Sender<RawWebhook>>
Clone the bounded sink for path, if a live channel owns it.
Trait Implementations§
Source§impl Clone for PluginWebhookRegistry
impl Clone for PluginWebhookRegistry
Source§fn clone(&self) -> PluginWebhookRegistry
fn clone(&self) -> PluginWebhookRegistry
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 moreSource§impl Default for PluginWebhookRegistry
impl Default for PluginWebhookRegistry
Source§fn default() -> PluginWebhookRegistry
fn default() -> PluginWebhookRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PluginWebhookRegistry
impl RefUnwindSafe for PluginWebhookRegistry
impl Send for PluginWebhookRegistry
impl Sync for PluginWebhookRegistry
impl Unpin for PluginWebhookRegistry
impl UnsafeUnpin for PluginWebhookRegistry
impl UnwindSafe for PluginWebhookRegistry
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