pub struct JitoClientBuilder { /* private fields */ }Expand description
Builder for configuring and creating a JitoClient.
Implementations§
Source§impl JitoClientBuilder
impl JitoClientBuilder
Sourcepub fn url<T: IntoIterator<Item = impl AsRef<str>>>(self, url: T) -> Self
pub fn url<T: IntoIterator<Item = impl AsRef<str>>>(self, url: T) -> Self
Sets the target URLs for the client.
Sourcepub fn interval(self, interval: Duration) -> Self
pub fn interval(self, interval: Duration) -> Self
Sets the interval duration between requests (0 = unlimited) For example, 5 requests per second = 200 ms interval.
Sourcepub fn ip(self, ip: Vec<IpAddr>) -> Self
pub fn ip(self, ip: Vec<IpAddr>) -> Self
Sets the local IP addresses to bind outgoing requests to.
Sourcepub fn build(self) -> Result<JitoClient>
pub fn build(self) -> Result<JitoClient>
Builds the JitoClient with the configured options.
Auto Trait Implementations§
impl !Freeze for JitoClientBuilder
impl !RefUnwindSafe for JitoClientBuilder
impl Send for JitoClientBuilder
impl Sync for JitoClientBuilder
impl Unpin for JitoClientBuilder
impl !UnwindSafe for JitoClientBuilder
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