pub struct TransferableUrlWithBlobClaim {
url: ServoUrl,
token: Option<Arc<BlobTransferState>>,
}Fields§
§url: ServoUrl§token: Option<Arc<BlobTransferState>>Implementations§
Source§impl TransferableUrlWithBlobClaim
impl TransferableUrlWithBlobClaim
pub fn url(&self) -> ServoUrl
pub fn transfer_guard(&self) -> BlobUrlTransferGuard
pub fn into_url(self) -> UrlWithBlobClaim
Methods from Deref<Target = ServoUrl>§
pub fn get_arc(&self) -> Arc<Url>
pub fn as_url(&self) -> &Url
pub fn cannot_be_a_base(&self) -> bool
pub fn domain(&self) -> Option<&str>
pub fn fragment(&self) -> Option<&str>
pub fn path(&self) -> &str
pub fn origin(&self) -> ImmutableOrigin
pub fn scheme(&self) -> &str
pub fn is_secure_scheme(&self) -> bool
Sourcepub fn is_local_scheme(&self) -> bool
pub fn is_local_scheme(&self) -> bool
Sourcepub fn is_special_scheme(&self) -> bool
pub fn is_special_scheme(&self) -> bool
Sourcepub fn is_equal_excluding_fragments(&self, other: &ServoUrl) -> bool
pub fn is_equal_excluding_fragments(&self, other: &ServoUrl) -> bool
https://url.spec.whatwg.org/#url-equivalence In the future this may be removed if the helper is added upstream in rust-url see https://github.com/servo/rust-url/issues/1063 for details
pub fn as_str(&self) -> &str
pub fn username(&self) -> &str
pub fn password(&self) -> Option<&str>
pub fn to_file_path(&self) -> Result<PathBuf, UrlError>
pub fn host(&self) -> Option<Host<&str>>
pub fn host_str(&self) -> Option<&str>
pub fn port(&self) -> Option<u16>
pub fn port_or_known_default(&self) -> Option<u16>
pub fn join(&self, input: &str) -> Result<ServoUrl, ParseError>
pub fn path_segments(&self) -> Option<Split<'_, char>>
pub fn query(&self) -> Option<&str>
Sourcepub fn debug_compact(&self) -> impl Display
pub fn debug_compact(&self) -> impl Display
Return a non-standard shortened form of the URL. Mainly intended to be used for debug printing in a constrained space (e.g., thread names).
Sourcepub fn is_potentially_trustworthy(&self) -> bool
pub fn is_potentially_trustworthy(&self) -> bool
Sourcepub fn matches_about_blank(&self) -> bool
pub fn matches_about_blank(&self) -> bool
Trait Implementations§
Source§impl Debug for TransferableUrlWithBlobClaim
impl Debug for TransferableUrlWithBlobClaim
Source§impl Deref for TransferableUrlWithBlobClaim
impl Deref for TransferableUrlWithBlobClaim
Source§impl<'de> Deserialize<'de> for TransferableUrlWithBlobClaim
impl<'de> Deserialize<'de> for TransferableUrlWithBlobClaim
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
Auto Trait Implementations§
impl !RefUnwindSafe for TransferableUrlWithBlobClaim
impl !UnwindSafe for TransferableUrlWithBlobClaim
impl Freeze for TransferableUrlWithBlobClaim
impl Send for TransferableUrlWithBlobClaim
impl Sync for TransferableUrlWithBlobClaim
impl Unpin for TransferableUrlWithBlobClaim
impl UnsafeUnpin for TransferableUrlWithBlobClaim
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert