Struct servo_media::ClientContextId
source · pub struct ClientContextId(pub(crate) u32, pub(crate) NonZero<u32>);
Expand description
An ID for clients to track instances of Players and AudioContexts belonging to the same tab and mute them simultaneously. Current tuple implementation matches one of Servo’s BrowsingContextId.
Tuple Fields§
§0: u32
§1: NonZero<u32>
Implementations§
source§impl ClientContextId
impl ClientContextId
pub fn build(a: u32, b: u32) -> ClientContextId
Trait Implementations§
source§impl Clone for ClientContextId
impl Clone for ClientContextId
source§fn clone(&self) -> ClientContextId
fn clone(&self) -> ClientContextId
Returns a copy 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 ClientContextId
impl Debug for ClientContextId
source§impl Hash for ClientContextId
impl Hash for ClientContextId
source§impl PartialEq for ClientContextId
impl PartialEq for ClientContextId
impl Copy for ClientContextId
impl Eq for ClientContextId
impl StructuralPartialEq for ClientContextId
Auto Trait Implementations§
impl Freeze for ClientContextId
impl RefUnwindSafe for ClientContextId
impl Send for ClientContextId
impl Sync for ClientContextId
impl Unpin for ClientContextId
impl UnwindSafe for ClientContextId
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.