pub struct MikuPaths {
pub data_dir: PathBuf,
pub config_dir: PathBuf,
pub topics_dir: PathBuf,
pub cache_dir: PathBuf,
pub observation_limit: Option<usize>,
}Fields§
§data_dir: PathBuf§config_dir: PathBuf§topics_dir: PathBuf§cache_dir: PathBuf§observation_limit: Option<usize>Implementations§
Source§impl MikuPaths
impl MikuPaths
pub fn resolve() -> Self
Sourcepub fn resolve_from(start: &Path) -> Self
pub fn resolve_from(start: &Path) -> Self
Resolution order:
MIKU_HOMEenv var (forces a unified root, bypasses discovery).- Nearest
miku.tomlwalking up fromstart— relative paths in the config are anchored to the config file’s directory, not cwd. - Nearest
.miku/directory walking up fromstart. - XDG fallback.
pub fn db_path(&self) -> PathBuf
pub fn caches_dir(&self) -> PathBuf
Auto Trait Implementations§
impl Freeze for MikuPaths
impl RefUnwindSafe for MikuPaths
impl Send for MikuPaths
impl Sync for MikuPaths
impl Unpin for MikuPaths
impl UnsafeUnpin for MikuPaths
impl UnwindSafe for MikuPaths
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request