pub struct DhttpSettingsFile { /* private fields */ }Implementations§
Source§impl DhttpSettingsFile
impl DhttpSettingsFile
pub fn new(path: PathBuf) -> Self
pub fn path(&self) -> &Path
pub async fn load(path: PathBuf) -> Result<Self, LoadDhttpSettingsError>
pub fn settings(&self) -> &DhttpSettings
pub fn settings_mut(&mut self) -> &mut DhttpSettings
pub async fn save(&self) -> Result<(), SaveDhttpSettingsError>
Source§impl DhttpSettingsFile
impl DhttpSettingsFile
Sourcepub async fn resolve_default_identity_profile(
&self,
home: &DhttpHome,
) -> Option<Result<IdentityProfile, ResolveDefaultIdentityFromSettingsError>>
pub async fn resolve_default_identity_profile( &self, home: &DhttpHome, ) -> Option<Result<IdentityProfile, ResolveDefaultIdentityFromSettingsError>>
Resolve the default identity profile referenced by [default].name,
or return None if no default is configured in this settings file.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DhttpSettingsFile
impl RefUnwindSafe for DhttpSettingsFile
impl Send for DhttpSettingsFile
impl Sync for DhttpSettingsFile
impl Unpin for DhttpSettingsFile
impl UnsafeUnpin for DhttpSettingsFile
impl UnwindSafe for DhttpSettingsFile
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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