pub struct CdpClientConfig {
pub max_message_size: Option<usize>,
pub max_frame_size: Option<usize>,
pub additional_headers: HashMap<String, String>,
pub command_timeout: Duration,
}Expand description
Configuration for a CDP client connection.
Use Default::default() for sensible defaults matching the Python cdp-use client.
Fields§
§max_message_size: Option<usize>Maximum WebSocket message size in bytes. Default: 100 MiB.
max_frame_size: Option<usize>Maximum WebSocket frame size in bytes. Default: tungstenite default (16 MiB).
additional_headers: HashMap<String, String>Additional HTTP headers to send during the WebSocket handshake.
command_timeout: DurationTimeout for CDP commands. Default: 30 seconds.
Trait Implementations§
Source§impl Clone for CdpClientConfig
impl Clone for CdpClientConfig
Source§fn clone(&self) -> CdpClientConfig
fn clone(&self) -> CdpClientConfig
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 CdpClientConfig
impl Debug for CdpClientConfig
Auto Trait Implementations§
impl Freeze for CdpClientConfig
impl RefUnwindSafe for CdpClientConfig
impl Send for CdpClientConfig
impl Sync for CdpClientConfig
impl Unpin for CdpClientConfig
impl UnsafeUnpin for CdpClientConfig
impl UnwindSafe for CdpClientConfig
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