Struct wasm_pkg_common::config::RegistryConfig
source · pub struct RegistryConfig { /* private fields */ }Implementations§
source§impl RegistryConfig
impl RegistryConfig
sourcepub fn backend_type(&self) -> Option<&str>
pub fn backend_type(&self) -> Option<&str>
Returns the backend type override.
sourcepub fn set_backend_type(&mut self, backend_type: Option<String>)
pub fn set_backend_type(&mut self, backend_type: Option<String>)
Sets the backend type override.
To unset the backend type override, pass None.
sourcepub fn configured_backend_types(&self) -> impl Iterator<Item = &str>
pub fn configured_backend_types(&self) -> impl Iterator<Item = &str>
Returns an iterator of configured backend types.
sourcepub fn backend_config<'a, T: Deserialize<'a>>(
&'a self,
backend_type: &str,
) -> Result<Option<T>, Error>
pub fn backend_config<'a, T: Deserialize<'a>>( &'a self, backend_type: &str, ) -> Result<Option<T>, Error>
Attempts to deserialize backend config with the given type.
Returns Ok(None) if no configuration was provided.
Returns Err if configuration was provided but deserialization failed.
Trait Implementations§
source§impl Clone for RegistryConfig
impl Clone for RegistryConfig
source§fn clone(&self) -> RegistryConfig
fn clone(&self) -> RegistryConfig
Returns a copy 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 RegistryConfig
impl Debug for RegistryConfig
source§impl Default for RegistryConfig
impl Default for RegistryConfig
source§fn default() -> RegistryConfig
fn default() -> RegistryConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RegistryConfig
impl RefUnwindSafe for RegistryConfig
impl Send for RegistryConfig
impl Sync for RegistryConfig
impl Unpin for RegistryConfig
impl UnwindSafe for RegistryConfig
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