pub enum Provider {
Native,
Custom(Arc<dyn Fn(&TransportConfig) -> Arc<dyn Transport> + Send + Sync>),
}Expand description
An HTTP/WebSocket provider. Native is the default; custom providers must describe their capabilities honestly. Reqwest is optional and unavailable on wasm.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Provider
impl !UnwindSafe for Provider
impl Forget for Provider
impl Freeze for Provider
impl Move for Provider
impl Send for Provider
impl Sync for Provider
impl Unpin for Provider
impl UnsafeUnpin for Provider
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