pub struct ZipReadOptions<'a> { /* private fields */ }Expand description
Options for reading a file from an archive.
Implementations§
Source§impl<'a> ZipReadOptions<'a>
impl<'a> ZipReadOptions<'a>
Sourcepub fn new() -> ZipReadOptions<'a>
pub fn new() -> ZipReadOptions<'a>
Create a new set of options with the default values.
Sourcepub fn password(self, password: Option<&'a [u8]>) -> ZipReadOptions<'a>
pub fn password(self, password: Option<&'a [u8]>) -> ZipReadOptions<'a>
Set the password, if any, to use. Return for chaining.
Sourcepub fn ignore_encryption_flag(self, ignore: bool) -> ZipReadOptions<'a>
pub fn ignore_encryption_flag(self, ignore: bool) -> ZipReadOptions<'a>
Set the ignore encryption flag. Return for chaining.
Trait Implementations§
Source§impl<'a> Default for ZipReadOptions<'a>
impl<'a> Default for ZipReadOptions<'a>
Source§fn default() -> ZipReadOptions<'a>
fn default() -> ZipReadOptions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ZipReadOptions<'a>
impl<'a> RefUnwindSafe for ZipReadOptions<'a>
impl<'a> Send for ZipReadOptions<'a>
impl<'a> Sync for ZipReadOptions<'a>
impl<'a> Unpin for ZipReadOptions<'a>
impl<'a> UnwindSafe for ZipReadOptions<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().