pub struct BrowserConfig { /* private fields */ }
Expand description
Configuration for the browser
Implementations§
Source§impl BrowserConfig
impl BrowserConfig
Sourcepub fn max_nodes_per_request(self, max_nodes_per_request: usize) -> Self
pub fn max_nodes_per_request(self, max_nodes_per_request: usize) -> Self
Set the maximum number of nodes per request sent to the server.
Note that the browser makes no guarantee that all requests sent will be as large as possible.
Sourcepub fn max_references_per_node(self, max_references_per_node: u32) -> Self
pub fn max_references_per_node(self, max_references_per_node: u32) -> Self
Set the maximum number of references requested per node. Can be 0 to let the server decide.
Sourcepub fn max_concurrent_requests(self, max_concurrent_requests: usize) -> Self
pub fn max_concurrent_requests(self, max_concurrent_requests: usize) -> Self
Set the maximum number of concurrent requests. Defaults to 1.
Sourcepub fn max_continuation_point_retries(
self,
max_continuation_point_retries: usize,
) -> Self
pub fn max_continuation_point_retries( self, max_continuation_point_retries: usize, ) -> Self
Set the maximum number of times a browse will be retried if the continuation point becomes invalid while the browser is running.
This will start the browse process over from zero for the affected node, meaning that the same references will be returned multiple times.
Trait Implementations§
Source§impl Clone for BrowserConfig
impl Clone for BrowserConfig
Source§fn clone(&self) -> BrowserConfig
fn clone(&self) -> BrowserConfig
Returns a duplicate 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 BrowserConfig
impl Debug for BrowserConfig
Auto Trait Implementations§
impl Freeze for BrowserConfig
impl RefUnwindSafe for BrowserConfig
impl Send for BrowserConfig
impl Sync for BrowserConfig
impl Unpin for BrowserConfig
impl UnwindSafe for BrowserConfig
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