Struct jsonrpsee_ws_client::client::WsConfig [−][src]
Configuration.
Fields
url: &'a str
URL to connect to.
If the port number is missing from the URL, the default port number is used.
ws://host
- port 80 is used
wss://host
- port 443 is used
max_request_body_size: usize
Max request body size
request_timeout: Option<Duration>
Request timeout
connection_timeout: Duration
Connection timeout
origin: Option<Cow<'a, str>>
Origin
header to pass during the HTTP handshake. If None
, no
Origin
header was passed.
handshake_url: Cow<'a, str>
Url to send during the HTTP handshake.
max_concurrent_requests: usize
Max concurrent request.
max_notifs_per_subscription: usize
Max concurrent notification capacity for each subscription; when the capacity is exceeded the subscription will be dropped.
You can also prevent the subscription being dropped by calling WsSubscription::next()
frequently enough
such that the buffer capacity doesn’t exceeds.
Note: The actual capacity is num_senders + max_subscription_capacity
because it is passed to [futures::channel::mpsc::channel
].
Implementations
impl<'a> WsConfig<'a>
[src]
pub fn with_url(url: &'a str) -> Self
[src]
Default WebSocket configuration with a specified URL to connect to.
Trait Implementations
impl<'a> Clone for WsConfig<'a>
[src]
impl<'a> Debug for WsConfig<'a>
[src]
impl<'a> TryFrom<WsConfig<'a>> for WsTransportClientBuilder<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for WsConfig<'a>
impl<'a> Send for WsConfig<'a>
impl<'a> Sync for WsConfig<'a>
impl<'a> Unpin for WsConfig<'a>
impl<'a> UnwindSafe for WsConfig<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,