pub struct ModuleEventDependencyHandle { /* private fields */ }Expand description
An opaque Event endpoint passed to Module lifecycle code.
Implementations§
Source§impl ModuleEventDependencyHandle
impl ModuleEventDependencyHandle
Sourcepub fn capability_id(&self) -> &'static str
pub fn capability_id(&self) -> &'static str
Returns the Capability implemented by this handle.
Sourcepub fn descriptor_version(&self) -> &'static str
pub fn descriptor_version(&self) -> &'static str
Returns the exact Descriptor version implemented by this handle.
Sourcepub fn operations(&self) -> &'static [&'static str]
pub fn operations(&self) -> &'static [&'static str]
Returns the exact Event Operation table implemented by this handle.
Sourcepub fn typed<C: EventCapability>(
&self,
) -> Result<NativeEventHandle<C>, RuntimeFailure>
pub fn typed<C: EventCapability>( &self, ) -> Result<NativeEventHandle<C>, RuntimeFailure>
Converts this resolved dependency into its generated typed Event handle.
Trait Implementations§
Source§impl Clone for ModuleEventDependencyHandle
impl Clone for ModuleEventDependencyHandle
Source§fn clone(&self) -> ModuleEventDependencyHandle
fn clone(&self) -> ModuleEventDependencyHandle
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 !RefUnwindSafe for ModuleEventDependencyHandle
impl !Send for ModuleEventDependencyHandle
impl !Sync for ModuleEventDependencyHandle
impl !UnwindSafe for ModuleEventDependencyHandle
impl Freeze for ModuleEventDependencyHandle
impl Unpin for ModuleEventDependencyHandle
impl UnsafeUnpin for ModuleEventDependencyHandle
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