pub struct SpecConfigurationBuilder<'a> { /* private fields */ }Expand description
The builder responsible for constructing a SpecConfiguration object.
Implementations§
Source§impl<'a> SpecConfigurationBuilder<'a>
impl<'a> SpecConfigurationBuilder<'a>
Sourcepub fn with_disable_spec_proxy(self, disable: bool) -> Self
pub fn with_disable_spec_proxy(self, disable: bool) -> Self
Configure whether or not this library is disabled.
This value is allowed to change during runtime.
Sourcepub fn with_operating_mode(self, mode: SpecProxyMode) -> Self
pub fn with_operating_mode(self, mode: SpecProxyMode) -> Self
Select the operating mode of the library.
This value is allowed to change during runtime.
Sourcepub fn with_percentage_of_ips(self, percentage_of_ips: u8) -> Self
pub fn with_percentage_of_ips(self, percentage_of_ips: u8) -> Self
Configure the amount of IPs that are routed through Spec Proxy.
This value is allowed to change during runtime.
Sourcepub fn build(self) -> SpecConfiguration<'a>
pub fn build(self) -> SpecConfiguration<'a>
Finalize the builder into a SpecConfiguration object.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SpecConfigurationBuilder<'a>
impl<'a> RefUnwindSafe for SpecConfigurationBuilder<'a>
impl<'a> Send for SpecConfigurationBuilder<'a>
impl<'a> Sync for SpecConfigurationBuilder<'a>
impl<'a> Unpin for SpecConfigurationBuilder<'a>
impl<'a> UnwindSafe for SpecConfigurationBuilder<'a>
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