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