pub struct ModuleHandle { /* private fields */ }Expand description
Cloneable handle for module-originated control RPCs on channel 0.
Implementations§
Source§impl ModuleHandle
impl ModuleHandle
Sourcepub async fn catalog_update(
&self,
provides: Vec<ProviderRole>,
) -> Result<(), CatalogUpdateError>
pub async fn catalog_update( &self, provides: Vec<ProviderRole>, ) -> Result<(), CatalogUpdateError>
Ask the daemon to replace this module’s advertised provider roles in place.
The returned result resolves when the daemon ACKs the update, rejects it with a typed channel-0 Error frame, the request times out, or the connection dies.
Sourcepub async fn push(
&self,
handle: &RouteHandle,
body: Vec<u8>,
admission_class: Option<AdmissionClass>,
) -> Result<(), SubcModuleError>
pub async fn push( &self, handle: &RouteHandle, body: Vec<u8>, admission_class: Option<AdmissionClass>, ) -> Result<(), SubcModuleError>
Emit an uncorrelated Push on a live route.
Sourcepub fn dropped_route_frames(&self) -> u64
pub fn dropped_route_frames(&self) -> u64
Number of unknown or stale route frames silently dropped by endpoint validation.
Trait Implementations§
Source§impl Clone for ModuleHandle
impl Clone for ModuleHandle
Source§fn clone(&self) -> ModuleHandle
fn clone(&self) -> ModuleHandle
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 ModuleHandle
impl RefUnwindSafe for ModuleHandle
impl Send for ModuleHandle
impl Sync for ModuleHandle
impl Unpin for ModuleHandle
impl UnsafeUnpin for ModuleHandle
impl UnwindSafe for ModuleHandle
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