pub struct Builder { /* private fields */ }Expand description
Plugin configuration.
Implementations§
Source§impl Builder
impl Builder
pub fn new() -> Self
Sourcepub fn force_shim(self, force: bool) -> Self
pub fn force_shim(self, force: bool) -> Self
Install the shim even when the webview has a native RTCPeerConnection.
For testing the shim on webviews that already support WebRTC.
Sourcepub fn max_peers_per_webview(self, n: usize) -> Self
pub fn max_peers_per_webview(self, n: usize) -> Self
Cap on concurrent peer connections per webview. Default 16.
Sourcepub fn engine(self, engine: Arc<dyn PeerEngine>) -> Self
pub fn engine(self, engine: Arc<dyn PeerEngine>) -> Self
Use a different engine than the default (native, pure Rust) one.
pub fn build<R: Runtime>(self) -> TauriPlugin<R>
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