Struct servo_media_traits::ClientContextId
source · pub struct ClientContextId(pub(crate) u32, pub(crate) NonZeroU32);
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: NonZeroU32
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
source§fn eq(&self, other: &ClientContextId) -> bool
fn eq(&self, other: &ClientContextId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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