Struct rust_apt::cache::PackageFile  
source · [−]pub struct PackageFile {
    pub cache: Rc<RefCell<UniquePtr<PkgCacheFile>>>,
    /* private fields */
}Fields
cache: Rc<RefCell<UniquePtr<PkgCacheFile>>>Implementations
sourceimpl PackageFile
 
impl PackageFile
pub fn new(
    pkg_file: PackageFile,
    cache: Rc<RefCell<UniquePtr<PkgCacheFile>>>
) -> PackageFile
sourcepub fn index_type(&self) -> Option<String>
 
pub fn index_type(&self) -> Option<String>
The Index Type of the PackageFile. Known values are:
Debian Package Index, Debian Translation Index, Debian dpkg status file,
sourcepub fn is_trusted(&self) -> bool
 
pub fn is_trusted(&self) -> bool
Return true if the PackageFile is trusted.
Trait Implementations
sourceimpl Debug for PackageFile
 
impl Debug for PackageFile
Auto Trait Implementations
impl !RefUnwindSafe for PackageFile
impl !Send for PackageFile
impl !Sync for PackageFile
impl !Unpin for PackageFile
impl !UnwindSafe for PackageFile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more