pub struct PluginReference { /* private fields */ }Expand description
Explicit selection of one plugin and transport.
Omitting capability_instance_id asks the registry to select the only
implementation of the requested interface. Zero or multiple matches are
errors; selection never falls back to another transport.
Implementations§
Source§impl PluginReference
impl PluginReference
pub fn new( plugin_id: impl Into<String>, capability_instance_id: Option<String>, transport: PluginTransport, ) -> Result<Self, PluginReferenceError>
pub fn plugin_id(&self) -> &str
pub fn capability_instance_id(&self) -> Option<&str>
pub const fn transport(&self) -> PluginTransport
Trait Implementations§
Source§impl Clone for PluginReference
impl Clone for PluginReference
Source§fn clone(&self) -> PluginReference
fn clone(&self) -> PluginReference
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 moreSource§impl Debug for PluginReference
impl Debug for PluginReference
Source§impl<'de> Deserialize<'de> for PluginReference
impl<'de> Deserialize<'de> for PluginReference
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PluginReference
Source§impl Hash for PluginReference
impl Hash for PluginReference
Source§impl PartialEq for PluginReference
impl PartialEq for PluginReference
Source§impl Serialize for PluginReference
impl Serialize for PluginReference
impl StructuralPartialEq for PluginReference
Auto Trait Implementations§
impl Freeze for PluginReference
impl RefUnwindSafe for PluginReference
impl Send for PluginReference
impl Sync for PluginReference
impl Unpin for PluginReference
impl UnsafeUnpin for PluginReference
impl UnwindSafe for PluginReference
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