pub enum PluginLocator {
File(Box<FileLocator>),
GitHub(Box<GitHubLocator>),
Url(Box<UrlLocator>),
Registry(Box<RegistryLocator>),
}
Expand description
Strategies and protocols for locating plugins.
Variants§
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§fn as_ref(&self) -> &PluginLocator
fn as_ref(&self) -> &PluginLocator
Converts this type into a shared reference of the (usually inferred) input type.
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<PluginLocator, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PluginLocator, <__D as Deserializer<'de>>::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 FromStr for PluginLocator
impl FromStr for PluginLocator
Source§type Err = PluginLocatorError
type Err = PluginLocatorError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<PluginLocator, <PluginLocator as FromStr>::Err>
fn from_str( value: &str, ) -> Result<PluginLocator, <PluginLocator as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreSource§impl PartialEq for PluginLocator
impl PartialEq for PluginLocator
Source§impl Serialize for PluginLocator
impl Serialize for PluginLocator
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<String> for PluginLocator
impl TryFrom<String> for PluginLocator
Source§type Error = PluginLocatorError
type Error = PluginLocatorError
The type returned in the event of a conversion error.
Source§fn try_from(
value: String,
) -> Result<PluginLocator, <PluginLocator as TryFrom<String>>::Error>
fn try_from( value: String, ) -> Result<PluginLocator, <PluginLocator as TryFrom<String>>::Error>
Performs the conversion.
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 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