[−][src]Struct pacmanconf::Config
A pacman config.
See pacman.conf (5) for information on each field.
Fields
root_dir: String
RootDir
db_path: String
DBPath
cache_dir: Vec<String>
CacheDir
hook_dir: Vec<String>
HookDir
gpg_dir: String
GPGDir
log_file: String
LogFile
hold_pkg: Vec<String>
HoldPkg
ignore_pkg: Vec<String>
IgnorePkg
ignore_group: Vec<String>
IgnoreGroup
architecture: String
Architecture
xfer_command: String
XferCommand
no_upgrade: Vec<String>
NoUpgrade
no_extract: Vec<String>
NoExtract
clean_method: Vec<String>
CleanMethod
sig_level: Vec<String>
SigLevel
local_file_sig_level: Vec<String>
LocalFileSigLevel
remote_file_sig_level: Vec<String>
RemoteFileSigLevel
use_syslog: bool
UseSyslog
color: bool
Color
use_delta: f64
UseDelta
total_download: bool
TotalDownload
check_space: bool
CheckSpace
verbose_pkg_lists: bool
VerpsePkgLists
disable_download_timeout: bool
DisableDownloadTimeout
parallel_downloads: u64
ParallelDownloads
chomp: bool
ILoveCandy
repos: Vec<Repository>
[repo_name]
Implementations
impl Config
[src]
pub fn new() -> Result<Config, Error>
[src]
Creates a new Config from the default pacman.conf.
The default pacman.conf location is a compile time option of pacman but is usually located at /etc/pacman.conf.
pub fn empty() -> Result<Config, Error>
[src]
Creates a new Config using pacman's compiled in defaults.
Parsing an empty file causes pacman-conf to fill in each
field with pacman's compiled in default values. This should
not be confused with the Default::default()
function which
is derived and will give rust's default values eg:
empty string, 0, etc.
pub fn from_file(config: &str) -> Result<Config, Error>
[src]
Create a new Config from a file.
pub fn with_opts(
bin: Option<&str>,
config: Option<&str>,
root_dir: Option<&str>
) -> Result<Config, Error>
[src]
bin: Option<&str>,
config: Option<&str>,
root_dir: Option<&str>
) -> Result<Config, Error>
Create a new Config with options.
- bin: The location of the
pacman-conf
binary. Default ispacman-conf
in PATH. - config: Location of config file to parse: Default is pacman's compiled in default (usually /etc/pacman.conf). root_dir: The RootDir: Default is pacman's compiled in default (usually /).
Trait Implementations
impl Clone for Config
[src]
impl Debug for Config
[src]
impl Default for Config
[src]
impl FromStr for Config
[src]
type Err = Error
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Ini for Config
[src]
type Err = Error
The associated error which can be returned from parsing.
pub fn callback(&mut self, cb: Callback<'_>) -> Result<(), Self::Err>
[src]
pub fn parse_str(&mut self, ini: &str) -> Result<(), Self::Err>
[src]
pub fn parse(
&mut self,
filename: Option<&str>,
ini: &str
) -> Result<(), Self::Err>
[src]
&mut self,
filename: Option<&str>,
ini: &str
) -> Result<(), Self::Err>
pub fn parse_with_section(
&mut self,
section: Option<&'a str>,
filename: Option<&str>,
ini: &'a str
) -> Result<Option<&'a str>, Self::Err>
[src]
&mut self,
section: Option<&'a str>,
filename: Option<&str>,
ini: &'a str
) -> Result<Option<&'a str>, Self::Err>
pub fn parse_line(
&mut self,
filename: Option<&str>,
line: &'a str,
line_number: usize,
section: Option<&'a str>
) -> Result<Option<&'a str>, Self::Err>
[src]
&mut self,
filename: Option<&str>,
line: &'a str,
line_number: usize,
section: Option<&'a str>
) -> Result<Option<&'a str>, Self::Err>
impl PartialEq<Config> for Config
[src]
impl PartialOrd<Config> for Config
[src]
pub fn partial_cmp(&self, other: &Config) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Config) -> bool
[src]
pub fn le(&self, other: &Config) -> bool
[src]
pub fn gt(&self, other: &Config) -> bool
[src]
pub fn ge(&self, other: &Config) -> bool
[src]
impl StructuralPartialEq for Config
[src]
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,