pub struct ZipUrl {
pub archive_url: Arc<UrlRef>,
pub path: RelativePathBuf,
/* private fields */
}Available on crate feature
zip only.Expand description
A URL for an entry in a ZIP archive.
The URL scheme is “zip:”, followed by full archive URL, a !, and then the entry path
within the archive.
Fields§
§archive_url: Arc<UrlRef>The archive URL.
path: RelativePathBufThe entry path.
Implementations§
Trait Implementations§
Source§impl URL for ZipUrl
impl URL for ZipUrl
Source§fn context(&self) -> &UrlContext
fn context(&self) -> &UrlContext
The UrlContext used to create this URL.
Source§fn format(&self) -> Option<String>
fn format(&self) -> Option<String>
Format of the URL content’s canonical representation. Read more
Source§fn base(&self) -> Option<UrlRef>
fn base(&self) -> Option<UrlRef>
Returns a URL that is the equivalent of a “base directory” for the URL. Read more
Source§fn conform(&mut self) -> Result<(), UrlError>
fn conform(&mut self) -> Result<(), UrlError>
Available on crate feature
blocking only.Ensures that the URL conforms with the expectations of its functions. If
successful, this function may change the URL appropriately, e.g. a relative
path would be turned into an absolute path. Read more
Source§fn conform_async(&self) -> Result<ConformFuture, UrlError>
fn conform_async(&self) -> Result<ConformFuture, UrlError>
Available on crate feature
async only.Async version of URL::conform. Read more
Source§fn open_async(&self) -> Result<OpenFuture, UrlError>
fn open_async(&self) -> Result<OpenFuture, UrlError>
Available on crate feature
async only.Auto Trait Implementations§
impl Freeze for ZipUrl
impl !RefUnwindSafe for ZipUrl
impl Send for ZipUrl
impl Sync for ZipUrl
impl Unpin for ZipUrl
impl !UnwindSafe for ZipUrl
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.