pub struct DownloadId(/* private fields */);Expand description
Browser-assigned download identifier.
A lightweight newtype around u32 that prevents accidental misuse of
window or tab IDs where a download ID is expected.
Implementations§
Trait Implementations§
Source§impl Clone for DownloadId
impl Clone for DownloadId
Source§fn clone(&self) -> DownloadId
fn clone(&self) -> DownloadId
Returns a duplicate of the value. Read more
1.0.0 · 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 DownloadId
impl Debug for DownloadId
Source§impl<'de> Deserialize<'de> for DownloadId
impl<'de> Deserialize<'de> for DownloadId
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
Source§impl Display for DownloadId
impl Display for DownloadId
Source§impl FromStr for DownloadId
impl FromStr for DownloadId
Source§impl Hash for DownloadId
impl Hash for DownloadId
Source§impl Ord for DownloadId
impl Ord for DownloadId
Source§fn cmp(&self, other: &DownloadId) -> Ordering
fn cmp(&self, other: &DownloadId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DownloadId
impl PartialEq for DownloadId
Source§impl PartialOrd for DownloadId
impl PartialOrd for DownloadId
Source§impl Serialize for DownloadId
impl Serialize for DownloadId
Source§impl TryFrom<u32> for DownloadId
impl TryFrom<u32> for DownloadId
impl Copy for DownloadId
impl Eq for DownloadId
impl StructuralPartialEq for DownloadId
Auto Trait Implementations§
impl Freeze for DownloadId
impl RefUnwindSafe for DownloadId
impl Send for DownloadId
impl Sync for DownloadId
impl Unpin for DownloadId
impl UnsafeUnpin for DownloadId
impl UnwindSafe for DownloadId
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