pub struct HttpTransport { /* private fields */ }Expand description
Default blocking HTTP transport with bounded read retries.
Implementations§
Source§impl HttpTransport
impl HttpTransport
Sourcepub fn with_trace_jsonl(path: &Path) -> Result<Self>
pub fn with_trace_jsonl(path: &Path) -> Result<Self>
Construct a transport that writes full JSONL RPC traces to a new file.
Sourcepub fn with_trace_jsonl_mode(path: &Path, mode: RpcTraceMode) -> Result<Self>
pub fn with_trace_jsonl_mode(path: &Path, mode: RpcTraceMode) -> Result<Self>
Construct a transport that writes the selected JSONL trace mode.
Trait Implementations§
Source§impl Clone for HttpTransport
impl Clone for HttpTransport
Source§fn clone(&self) -> HttpTransport
fn clone(&self) -> HttpTransport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HttpTransport
Available on crate feature http only.
impl Default for HttpTransport
Available on crate feature
http only.Auto Trait Implementations§
impl !RefUnwindSafe for HttpTransport
impl !UnwindSafe for HttpTransport
impl Freeze for HttpTransport
impl Send for HttpTransport
impl Sync for HttpTransport
impl Unpin for HttpTransport
impl UnsafeUnpin for HttpTransport
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