pub struct RemoteSettingsBenchmarkClient { /* private fields */ }
Expand description
Remotes settings client for benchmarking
This fetches all data in new
, then implements [rs::Client] by returning the local data.
Construct this one before the benchmark is run, then clone it as input for the benchmark. This
ensures that network time does not count towards the benchmark time.
Implementations§
Trait Implementations§
source§impl Clone for RemoteSettingsBenchmarkClient
impl Clone for RemoteSettingsBenchmarkClient
source§fn clone(&self) -> RemoteSettingsBenchmarkClient
fn clone(&self) -> RemoteSettingsBenchmarkClient
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 Default for RemoteSettingsBenchmarkClient
impl Default for RemoteSettingsBenchmarkClient
source§fn default() -> RemoteSettingsBenchmarkClient
fn default() -> RemoteSettingsBenchmarkClient
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RemoteSettingsBenchmarkClient
impl RefUnwindSafe for RemoteSettingsBenchmarkClient
impl Send for RemoteSettingsBenchmarkClient
impl Sync for RemoteSettingsBenchmarkClient
impl Unpin for RemoteSettingsBenchmarkClient
impl UnwindSafe for RemoteSettingsBenchmarkClient
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
)§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more