pub struct PkgFileIterator { /* private fields */ }Implementations§
Source§impl PkgFileIterator
impl PkgFileIterator
Sourcepub fn codename(&self) -> Result<&str, Exception>
pub fn codename(&self) -> Result<&str, Exception>
The Codename of the PackageFile. ex: main, non-free
Sourcepub fn site(&self) -> Result<&str, Exception>
pub fn site(&self) -> Result<&str, Exception>
The Hostname of the PackageFile. ex: deb.debian.org
Sourcepub fn index_type(&self) -> Result<&str, Exception>
pub fn index_type(&self) -> Result<&str, Exception>
The Index Type of the PackageFile. Known values are:
Debian Package Index, Debian Translation Index, Debian dpkg status file,
Sourcepub fn is_downloadable(&self) -> bool
pub fn is_downloadable(&self) -> bool
true if the PackageFile contains packages that can be downloaded
Sourcepub unsafe fn unique(&self) -> UniquePtr<PkgFileIterator>
pub unsafe fn unique(&self) -> UniquePtr<PkgFileIterator>
Clone the pointer.
§Safety
If the inner pointer is null segfaults can occur.
Using crate::raw::IntoRawIter::make_safe to convert to an Option
is recommended.
The returned UniquePtr cannot outlive the cache.
pub fn raw_next(self: Pin<&mut Self>)
pub fn end(&self) -> bool
Trait Implementations§
Source§impl ExternType for PkgFileIterator
impl ExternType for PkgFileIterator
impl UniquePtrTarget for PkgFileIterator
Auto Trait Implementations§
impl !Freeze for PkgFileIterator
impl RefUnwindSafe for PkgFileIterator
impl !Send for PkgFileIterator
impl !Sync for PkgFileIterator
impl !Unpin for PkgFileIterator
impl UnwindSafe for PkgFileIterator
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