Struct zenoh_config::PluginsLoading
source · pub struct PluginsLoading {
pub enabled: bool,
pub search_dirs: Option<Vec<String>>,
}
Fields§
§enabled: bool
§search_dirs: Option<Vec<String>>
Implementations§
source§impl PluginsLoading
impl PluginsLoading
pub fn validate(&self) -> bool
pub fn new( enabled: bool, search_dirs: Option<Vec<String>> ) -> Result<Self, Self>
pub fn enabled(&self) -> &bool
pub fn set_enabled(&mut self, value: bool) -> Result<bool, bool>
pub fn search_dirs(&self) -> &Option<Vec<String>>
pub fn set_search_dirs( &mut self, value: Option<Vec<String>> ) -> Result<Option<Vec<String>>, Option<Vec<String>>>
source§impl PluginsLoading
impl PluginsLoading
pub fn from_deserializer<'d, D: Deserializer<'d>>(
d: D
) -> Result<Self, Result<Self, D::Error>>where
Self: Deserialize<'d>,
Trait Implementations§
source§impl Clone for PluginsLoading
impl Clone for PluginsLoading
source§fn clone(&self) -> PluginsLoading
fn clone(&self) -> PluginsLoading
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 PluginsLoading
impl Debug for PluginsLoading
source§impl Default for PluginsLoading
impl Default for PluginsLoading
source§fn default() -> PluginsLoading
fn default() -> PluginsLoading
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PluginsLoadingwhere
PluginsLoading: Default,
impl<'de> Deserialize<'de> for PluginsLoadingwhere
PluginsLoading: Default,
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 Serialize for PluginsLoading
impl Serialize for PluginsLoading
source§impl ValidatedMap for PluginsLoading
impl ValidatedMap for PluginsLoading
fn insert<'d, D: Deserializer<'d>>( &mut self, key: &str, value: D ) -> Result<(), InsertionError>
fn get<'a>(&'a self, key: &str) -> Result<&dyn Any, GetError>
fn get_json(&self, key: &str) -> Result<String, GetError>
type Keys = Vec<String>
fn keys(&self) -> Self::Keys
fn insert_json5(&mut self, key: &str, value: &str) -> Result<(), InsertionError>
source§impl<'a> ValidatedMapAssociatedTypes<'a> for PluginsLoading
impl<'a> ValidatedMapAssociatedTypes<'a> for PluginsLoading
Auto Trait Implementations§
impl Freeze for PluginsLoading
impl RefUnwindSafe for PluginsLoading
impl Send for PluginsLoading
impl Sync for PluginsLoading
impl Unpin for PluginsLoading
impl UnwindSafe for PluginsLoading
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