[][src]Struct alpm_rs::db::AlpmDB

pub struct AlpmDB { /* fields omitted */ }

Alpm database

Methods

impl AlpmDB[src]

pub fn name(&self) -> &str[src]

Get the name of the package database.

pub fn search<'a, T, S>(&self, needles: T) -> PackageList where
    T: IntoIterator<Item = S>,
    S: AsRef<str> + 'a, 
[src]

pub fn search_one<'a, S: AsRef<str> + 'a>(&self, search: S) -> PackageList[src]

pub fn pkgcache(&self) -> PackageList[src]

Get the package cache of the package database.

pub fn unregister(&self) -> bool[src]

Unregister the package database.

pub fn get_pkg(&self, name: &str) -> Option<Package>[src]

pub fn update(&self, force: bool) -> i32[src]

Requires root

pub fn set_servers(&self, servers: &[&str]) -> bool[src]

pub fn get_servers(&self) -> StringList[src]

pub fn add_server(&self, server: &str) -> bool[src]

pub fn remove_server(&self, server: &str) -> bool[src]

Trait Implementations

impl AlpmListItem<AlpmDB> for AlpmDB[src]

impl From<*mut alpm_db_t> for AlpmDB[src]

impl Drop for AlpmDB[src]

Auto Trait Implementations

impl !Send for AlpmDB

impl !Sync for AlpmDB

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]