pub struct Db<'h> { /* private fields */ }
Implementations§
source§impl<'h> Db<'h>
impl<'h> Db<'h>
pub fn as_ptr(self) -> *mut alpm_db_t
pub fn name(&self) -> &'h str
pub fn servers(&self) -> AlpmList<'h, &'h str>
pub fn pkg<S: Into<Vec<u8>>>(&self, name: S) -> Result<Package<'h>>
pub fn pkgs(&self) -> AlpmList<'h, Package<'h>>
pub fn group<S: Into<Vec<u8>>>(&self, name: S) -> Result<Group<'h>>
pub fn set_usage(&self, usage: Usage) -> Result<()>
pub fn search<L>(&self, list: L) -> Result<AlpmListMut<'h, Package<'h>>>where
L: IntoRawAlpmList<'h, String>,
pub fn groups(&self) -> Result<AlpmList<'h, Group<'h>>>
pub fn siglevel(&self) -> SigLevel
pub fn is_valid(&self) -> Result<()>
pub fn usage(&self) -> Result<Usage>
Trait Implementations§
source§impl<'a> AsAlpmListItemPtr<'a> for Db<'a>
impl<'a> AsAlpmListItemPtr<'a> for Db<'a>
impl<'h> Copy for Db<'h>
impl<'a> Push<'a> for Db<'a>
Auto Trait Implementations§
impl<'h> !RefUnwindSafe for Db<'h>
impl<'h> !Send for Db<'h>
impl<'h> !Sync for Db<'h>
impl<'h> Unpin for Db<'h>
impl<'h> !UnwindSafe for Db<'h>
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