pub struct Alpm { /* private fields */ }
Implementations§
source§impl Alpm
impl Alpm
pub fn set_log_cb<T: 'static, F: FnMut(LogLevel, &str, &mut T) + 'static>( &self, data: T, f: F )
pub fn set_dl_cb<T: 'static, F: FnMut(&str, AnyDownloadEvent<'_>, &mut T) + 'static>( &self, data: T, f: F )
pub fn set_event_cb<T: 'static, F: FnMut(AnyEvent<'_>, &mut T) + 'static>( &self, data: T, f: F )
pub fn set_progress_cb<T: 'static, F: FnMut(Progress, &str, i32, usize, usize, &mut T) + 'static>( &self, data: T, f: F )
pub fn set_question_cb<T: 'static, F: FnMut(AnyQuestion<'_>, &mut T) + 'static>( &self, data: T, f: F )
pub fn set_fetch_cb<T: 'static, F: FnMut(&str, &str, bool, &mut T) -> FetchResult + 'static>( &self, data: T, f: F )
pub fn take_raw_log_cb(&self) -> RawLogCb
pub fn set_raw_log_cb(&self, cb: RawLogCb)
pub fn take_raw_dl_cb(&self) -> RawDlCb
pub fn set_raw_dl_cb(&self, cb: RawDlCb)
pub fn take_raw_event_cb(&self) -> RawEventCb
pub fn set_raw_event_cb(&self, cb: RawEventCb)
pub fn take_raw_progress_cb(&self) -> RawProgressCb
pub fn set_raw_progress_cb(&self, cb: RawProgressCb)
pub fn take_raw_question_cb(&self) -> RawQuestionCb
pub fn set_raw_question_cb(&self, cb: RawQuestionCb)
pub fn take_raw_fetch_cb(&self) -> RawFetchCb
pub fn set_raw_fetch_cb(&self, cb: RawFetchCb)
source§impl Alpm
impl Alpm
pub fn check_conflicts<'a, L: AsAlpmList<&'a Pkg>>( &self, list: L ) -> AlpmListMut<OwnedConflict>
source§impl Alpm
impl Alpm
pub fn check_deps<'a>( &self, pkgs: impl AsAlpmList<&'a Pkg>, rem: impl AsAlpmList<&'a Pkg>, upgrade: impl AsAlpmList<&'a Pkg>, reverse_deps: bool ) -> AlpmListMut<DependMissing>
source§impl Alpm
impl Alpm
pub fn fetch_pkgurl<'a, L: AsAlpmList<&'a str>>( &self, urls: L ) -> Result<AlpmListMut<String>>
source§impl Alpm
impl Alpm
pub fn as_alpm_handle_t(&self) -> *mut alpm_handle_t
pub fn unlock(&self) -> Result<()>
pub fn root(&self) -> &str
pub fn dbpath(&self) -> &str
pub fn hookdirs(&self) -> AlpmList<'_, &str>
pub fn cachedirs(&self) -> AlpmList<'_, &str>
pub fn lockfile(&self) -> &str
pub fn gpgdir(&self) -> Option<&str>
pub fn use_syslog(&self) -> bool
pub fn noupgrades(&self) -> AlpmList<'_, &str>
pub fn noextracts(&self) -> AlpmList<'_, &str>
pub fn ignorepkgs(&self) -> AlpmList<'_, &str>
pub fn ignoregroups(&self) -> AlpmList<'_, &str>
pub fn overwrite_files(&self) -> AlpmList<'_, &str>
pub fn assume_installed(&self) -> AlpmList<'_, &Dep>
pub fn architectures(&self) -> AlpmList<'_, &str>
pub fn check_space(&self) -> bool
pub fn dbext(&self) -> &str
pub fn add_hookdir<S: Into<Vec<u8>>>(&mut self, s: S) -> Result<()>
pub fn set_hookdirs<'a, T: AsAlpmList<&'a str>>( &mut self, list: T ) -> Result<()>
pub fn remove_hookdir<S: Into<Vec<u8>>>(&mut self, s: S) -> Result<bool>
pub fn add_cachedir<S: Into<Vec<u8>>>(&mut self, s: S) -> Result<()>
pub fn set_cachedirs<'a, T: AsAlpmList<&'a str>>( &mut self, list: T ) -> Result<()>
pub fn remove_cachedir<S: Into<Vec<u8>>>(&mut self, s: S) -> Result<bool>
pub fn logfile(&self) -> Option<&str>
pub fn set_logfile<S: Into<Vec<u8>>>(&mut self, s: S) -> Result<()>
pub fn set_gpgdir<S: Into<Vec<u8>>>(&mut self, s: S) -> Result<()>
pub fn set_use_syslog(&self, b: bool)
pub fn add_noupgrade<S: Into<Vec<u8>>>(&mut self, s: S) -> Result<()>
pub fn set_noupgrades<'a, T: AsAlpmList<&'a str>>( &mut self, list: T ) -> Result<()>
pub fn remove_noupgrade<S: Into<Vec<u8>>>(&mut self, s: S) -> Result<bool>
pub fn match_noupgrade<S: Into<Vec<u8>>>(&mut self, s: S) -> Match
pub fn add_noextract<S: Into<Vec<u8>>>(&mut self, s: S) -> Result<()>
pub fn set_noextracts<'a, T: AsAlpmList<&'a str>>( &mut self, list: T ) -> Result<()>
pub fn remove_noextract<S: Into<Vec<u8>>>(&mut self, s: S) -> Result<bool>
pub fn match_noextract<S: Into<Vec<u8>>>(&mut self, s: S) -> Match
pub fn add_ignorepkg<S: Into<Vec<u8>>>(&mut self, s: S) -> Result<()>
pub fn set_ignorepkgs<'a, T: AsAlpmList<&'a str>>( &mut self, list: T ) -> Result<()>
pub fn remove_ignorepkg<S: Into<Vec<u8>>>(&mut self, s: S) -> Result<bool>
pub fn add_ignoregroup<S: Into<Vec<u8>>>(&mut self, s: S) -> Result<()>
pub fn set_ignoregroups<'a, T: AsAlpmList<&'a str>>( &mut self, list: T ) -> Result<()>
pub fn remove_ignoregroup<S: Into<Vec<u8>>>(&mut self, s: S) -> Result<bool>
pub fn add_overwrite_file<S: Into<Vec<u8>>>(&mut self, s: S) -> Result<()>
pub fn set_overwrite_files<'a, T: AsAlpmList<&'a str>>( &mut self, list: T ) -> Result<()>
pub fn remove_overwrite_file<S: Into<Vec<u8>>>(&mut self, s: S) -> Result<bool>
pub fn add_assume_installed(&mut self, s: &Dep) -> Result<()>
pub fn set_assume_installed<'a, T: AsAlpmList<&'a Dep>>( &mut self, list: T ) -> Result<()>
pub fn remove_assume_installed(&mut self, s: &Dep) -> Result<bool>
pub fn add_architecture<S: Into<Vec<u8>>>(&mut self, s: S) -> Result<()>
pub fn set_architectures<'a, T: AsAlpmList<&'a str>>( &mut self, list: T ) -> Result<()>
pub fn remove_architecture<S: Into<Vec<u8>>>(&mut self, s: S) -> Result<bool>
pub fn localdb(&self) -> &Db
pub fn syncdbs(&self) -> AlpmList<'_, &Db>
pub fn syncdbs_mut(&mut self) -> AlpmList<'_, DbMut<'_>>
pub fn set_check_space(&self, b: bool)
pub fn set_dbext<S: Into<Vec<u8>>>(&mut self, s: S)
pub fn set_default_siglevel(&self, s: SigLevel) -> Result<()>
pub fn default_siglevel(&self) -> SigLevel
pub fn set_local_file_siglevel(&self, s: SigLevel) -> Result<()>
pub fn local_file_siglevel(&self) -> SigLevel
pub fn set_remote_file_siglevel(&self, s: SigLevel) -> Result<()>
pub fn remote_file_siglevel(&self) -> SigLevel
pub fn set_disable_dl_timeout(&self, b: bool)
pub fn set_parallel_downloads(&self, n: u32)
source§impl Alpm
impl Alpm
pub fn extract_keyid<S: Into<Vec<u8>>>( &self, ident: S, sig: &[u8] ) -> Result<AlpmListMut<String>>
source§impl Alpm
impl Alpm
pub fn find_group_pkgs<'a, S: Into<Vec<u8>>>( &'a self, dbs: AlpmList<'_, &Db>, s: S ) -> AlpmListMut<&'a Package>
source§impl Alpm
impl Alpm
pub fn trans_flags(self) -> TransFlag
pub fn trans_prepare(&mut self) -> Result<(), PrepareError<'_>>
pub fn trans_commit(&mut self) -> Result<(), CommitError>
pub fn trans_interrupt(&mut self) -> Result<()>
pub fn trans_add(&self) -> AlpmList<'_, &Package>
pub fn trans_remove(&self) -> AlpmList<'_, &Package>
pub fn trans_release(&mut self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Alpm
impl !RefUnwindSafe for Alpm
impl !Send for Alpm
impl !Sync for Alpm
impl Unpin for Alpm
impl !UnwindSafe for Alpm
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