#[non_exhaustive]pub struct BinaryCookies {
pub pages: Vec<Page>,
pub checksum: [u8; 8],
}Expand description
A fully decoded .binarycookies file.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pages: Vec<Page>The pages in file order, including empty ones.
checksum: [u8; 8]The trailing 8-byte checksum, stored as-is and never verified, matching the Go reference implementation.
Implementations§
Source§impl BinaryCookies
impl BinaryCookies
Iterates over every cookie across all pages, in file order.
The borrowing counterpart of the lazy cookies
stream, for when the file is already fully decoded.
Sourcepub fn iter(&self) -> CookieIter<'_>
pub fn iter(&self) -> CookieIter<'_>
Borrowing iterator over every cookie across all pages, in file order.
The same sequence as cookies but with the nameable
CookieIter return type; &BinaryCookies implements
IntoIterator too, so for cookie in &jar works.
Trait Implementations§
Source§impl Clone for BinaryCookies
impl Clone for BinaryCookies
Source§fn clone(&self) -> BinaryCookies
fn clone(&self) -> BinaryCookies
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinaryCookies
impl Debug for BinaryCookies
Source§impl<'de> Deserialize<'de> for BinaryCookies
impl<'de> Deserialize<'de> for BinaryCookies
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BinaryCookies
Source§impl Hash for BinaryCookies
impl Hash for BinaryCookies
Source§impl<'a> IntoIterator for &'a BinaryCookies
impl<'a> IntoIterator for &'a BinaryCookies
Source§impl PartialEq for BinaryCookies
impl PartialEq for BinaryCookies
Source§fn eq(&self, other: &BinaryCookies) -> bool
fn eq(&self, other: &BinaryCookies) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BinaryCookies
impl Serialize for BinaryCookies
impl StructuralPartialEq for BinaryCookies
Auto Trait Implementations§
impl Freeze for BinaryCookies
impl RefUnwindSafe for BinaryCookies
impl Send for BinaryCookies
impl Sync for BinaryCookies
impl Unpin for BinaryCookies
impl UnsafeUnpin for BinaryCookies
impl UnwindSafe for BinaryCookies
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