Struct ConfigPath
pub struct ConfigPath(/* private fields */);Expand description
A path inside config/: relative, /-separated, with no empty, . or
.. part, no \, : or NUL. Checked once here; the service checks only
that it is the calling mod’s.
Implementations§
§impl ConfigPath
impl ConfigPath
pub fn new(path: &str) -> Result<ConfigPath, ConfigFileError>
pub fn new(path: &str) -> Result<ConfigPath, ConfigFileError>
Checks path and makes a ConfigPath of it, or refuses with ConfigFileError::InvalidPath.
Trait Implementations§
§impl Clone for ConfigPath
impl Clone for ConfigPath
§fn clone(&self) -> ConfigPath
fn clone(&self) -> ConfigPath
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 more§impl Debug for ConfigPath
impl Debug for ConfigPath
impl Eq for ConfigPath
§impl Hash for ConfigPath
impl Hash for ConfigPath
§impl PartialEq for ConfigPath
impl PartialEq for ConfigPath
impl StructuralPartialEq for ConfigPath
§impl TryFrom<String> for ConfigPath
A path checked as ConfigPath::new checks it.
impl TryFrom<String> for ConfigPath
A path checked as ConfigPath::new checks it.
§type Error = ConfigFileError
type Error = ConfigFileError
The type returned in the event of a conversion error.
§fn try_from(path: String) -> Result<ConfigPath, ConfigFileError>
fn try_from(path: String) -> Result<ConfigPath, ConfigFileError>
Performs the conversion.
§impl Wire for ConfigPath
impl Wire for ConfigPath
Auto Trait Implementations§
impl Freeze for ConfigPath
impl RefUnwindSafe for ConfigPath
impl Send for ConfigPath
impl Sync for ConfigPath
impl Unpin for ConfigPath
impl UnsafeUnpin for ConfigPath
impl UnwindSafe for ConfigPath
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