pub struct Builder { /* private fields */ }Expand description
Builder for the WebSocket plugin, used to configure a custom TLS Connector before calling Builder::build.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn tls_connector(self, connector: Connector) -> Self
pub fn tls_connector(self, connector: Connector) -> Self
Sets the TLS Connector used to establish wss:// connections.
When this is not called (or is called with Connector::Plain) and a rustls-tls or
rustls-tls-native-roots feature is enabled, Builder::build installs rustls’s ring
crypto provider as the process default if none is installed yet.
Sourcepub fn build<R: Runtime>(self) -> TauriPlugin<R>
pub fn build<R: Runtime>(self) -> TauriPlugin<R>
Builds the plugin, registering the connect and send commands and the shared connection state.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Builder
impl !UnwindSafe for Builder
impl Freeze for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnsafeUnpin for Builder
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