Struct tectonic::config::PersistentConfig
source · pub struct PersistentConfig { /* private fields */ }
Implementations§
source§impl PersistentConfig
impl PersistentConfig
sourcepub fn open(auto_create_config_file: bool) -> Result<PersistentConfig>
pub fn open(auto_create_config_file: bool) -> Result<PersistentConfig>
Open the per-user configuration file.
This file is stored in TOML format. If the configuration file does not
exist, no error is signaled — instead, a basic default configuration
is returned. In this case, if auto_create_config_file
is true, the
configuration file (and the directory containing it) will be
automatically created, filling in the default configuration. If it is
false, the default configuration is returned and the filesystem is not
modified.
pub fn make_cached_url_provider( &self, url: &str, only_cached: bool, custom_cache_root: Option<&Path>, status: &mut dyn StatusBackend ) -> Result<Box<dyn Bundle>>
pub fn make_local_file_provider( &self, file_path: PathBuf, _status: &mut dyn StatusBackend ) -> Result<Box<dyn Bundle>>
pub fn default_bundle_loc(&self) -> &str
pub fn default_bundle( &self, only_cached: bool, status: &mut dyn StatusBackend ) -> Result<Box<dyn Bundle>>
pub fn format_cache_path(&self) -> Result<PathBuf>
Trait Implementations§
source§impl Default for PersistentConfig
impl Default for PersistentConfig
source§impl<'de> Deserialize<'de> for PersistentConfig
impl<'de> Deserialize<'de> for PersistentConfig
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
Auto Trait Implementations§
impl RefUnwindSafe for PersistentConfig
impl Send for PersistentConfig
impl Sync for PersistentConfig
impl Unpin for PersistentConfig
impl UnwindSafe for PersistentConfig
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