pub struct WebSocketClientOptions<E, S, R, const B: usize> {
pub web_socket: WebSocketStream<S>,
pub csprng: R,
pub extension: E,
}Fields§
§web_socket: WebSocketStream<S>§csprng: R§extension: EImplementations§
Source§impl<S, R, const B: usize> WebSocketClientOptions<NonZeroUsize, S, R, B>
impl<S, R, const B: usize> WebSocketClientOptions<NonZeroUsize, S, R, B>
pub fn new( web_socket: WebSocketStream<S>, processing_cache_size: NonZeroUsize, csprng: R, ) -> Self
Trait Implementations§
Source§impl<S, R, C, const B: usize> From<WebSocketClientOptions<NonZero<usize>, S, R, B>> for WebSocketClient<C>where
C: CommunicableTypes<Req: Send + 'static, Resp: Send + 'static> + Send + 'static,
C::Variant: WebSocketClientExtension<Extension = ()> + WebSocketClientHandlers<C> + Responders<C, Responders = LruCache<Vec<u8>, Responder<C>>>,
<C::Variant as Responders<C>>::Responders: ContainsResponders + Send + 'static,
S: AsyncRead + AsyncWrite + Unpin + Send + 'static,
R: CryptoRngCore + Send + 'static,
impl<S, R, C, const B: usize> From<WebSocketClientOptions<NonZero<usize>, S, R, B>> for WebSocketClient<C>where
C: CommunicableTypes<Req: Send + 'static, Resp: Send + 'static> + Send + 'static,
C::Variant: WebSocketClientExtension<Extension = ()> + WebSocketClientHandlers<C> + Responders<C, Responders = LruCache<Vec<u8>, Responder<C>>>,
<C::Variant as Responders<C>>::Responders: ContainsResponders + Send + 'static,
S: AsyncRead + AsyncWrite + Unpin + Send + 'static,
R: CryptoRngCore + Send + 'static,
Source§fn from(options: WebSocketClientOptions<NonZeroUsize, S, R, B>) -> Self
fn from(options: WebSocketClientOptions<NonZeroUsize, S, R, B>) -> Self
Converts to this type from the input type.
Source§impl<S, R, C, const B: usize> From<WebSocketClientOptions<Vec<usize>, S, R, B>> for WebSocketClient<C>where
C: CommunicableTypes<Req: Send + 'static, Resp: Send + 'static> + Send + 'static,
C::Variant: WebSocketClientExtension<Extension = Vec<usize>> + WebSocketClientHandlers<C> + Responders<C, Responders = Option<Responder<C>>>,
<C::Variant as Responders<C>>::Responders: ContainsResponders + Send + 'static,
S: AsyncRead + AsyncWrite + Unpin + Send + 'static,
R: CryptoRngCore + Send + 'static,
impl<S, R, C, const B: usize> From<WebSocketClientOptions<Vec<usize>, S, R, B>> for WebSocketClient<C>where
C: CommunicableTypes<Req: Send + 'static, Resp: Send + 'static> + Send + 'static,
C::Variant: WebSocketClientExtension<Extension = Vec<usize>> + WebSocketClientHandlers<C> + Responders<C, Responders = Option<Responder<C>>>,
<C::Variant as Responders<C>>::Responders: ContainsResponders + Send + 'static,
S: AsyncRead + AsyncWrite + Unpin + Send + 'static,
R: CryptoRngCore + Send + 'static,
Auto Trait Implementations§
impl<E, S, R, const B: usize> !Freeze for WebSocketClientOptions<E, S, R, B>
impl<E, S, R, const B: usize> !RefUnwindSafe for WebSocketClientOptions<E, S, R, B>
impl<E, S, R, const B: usize> Send for WebSocketClientOptions<E, S, R, B>
impl<E, S, R, const B: usize> Sync for WebSocketClientOptions<E, S, R, B>
impl<E, S, R, const B: usize> Unpin for WebSocketClientOptions<E, S, R, B>
impl<E, S, R, const B: usize> !UnwindSafe for WebSocketClientOptions<E, S, R, B>
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