pub enum PluginLocator {
Data(Box<DataLocator>),
File(Box<FileLocator>),
GitHub(Box<GitHubLocator>),
Url(Box<UrlLocator>),
Registry(Box<RegistryLocator>),
}Expand description
Strategies and protocols for locating plugins.
Variants§
Data(Box<DataLocator>)
data://base64encodeddata
File(Box<FileLocator>)
file:///abs/path/to/file.wasm file://../rel/path/to/file.wasm
GitHub(Box<GitHubLocator>)
github://owner/repo github://owner/repo@tag github://owner/repo/project
Url(Box<UrlLocator>)
https://url/to/file.wasm
Registry(Box<RegistryLocator>)
registry://plugins/python registry://plugins/python:tag
Trait Implementations§
Source§impl AsRef<PluginLocator> for PluginLocator
impl AsRef<PluginLocator> for PluginLocator
Source§impl Clone for PluginLocator
impl Clone for PluginLocator
Source§fn clone(&self) -> PluginLocator
fn clone(&self) -> PluginLocator
Returns a duplicate of the value. Read more
1.0.0 · 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 PluginLocator
impl Debug for PluginLocator
Source§impl<'de> Deserialize<'de> for PluginLocator
impl<'de> Deserialize<'de> for PluginLocator
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
Source§impl Display for PluginLocator
impl Display for PluginLocator
Source§impl From<PluginLocator> for String
impl From<PluginLocator> for String
Source§fn from(locator: PluginLocator) -> Self
fn from(locator: PluginLocator) -> Self
Converts to this type from the input type.
Source§impl FromStr for PluginLocator
impl FromStr for PluginLocator
Source§impl PartialEq for PluginLocator
impl PartialEq for PluginLocator
Source§impl Serialize for PluginLocator
impl Serialize for PluginLocator
Source§impl TryFrom<String> for PluginLocator
impl TryFrom<String> for PluginLocator
impl Eq for PluginLocator
impl StructuralPartialEq for PluginLocator
Auto Trait Implementations§
impl Freeze for PluginLocator
impl RefUnwindSafe for PluginLocator
impl Send for PluginLocator
impl Sync for PluginLocator
impl Unpin for PluginLocator
impl UnsafeUnpin for PluginLocator
impl UnwindSafe for PluginLocator
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more