pub struct ClientBuilder { /* private fields */ }Expand description
A builder for creating a Client.
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn max_targets(self, count: u32) -> Self
pub fn max_targets(self, count: u32) -> Self
Sets the maximum number of virtual targets this client can manage.
The default is 16.
Sourcepub fn connect(self) -> Result<Client, ClientError>
pub fn connect(self) -> Result<Client, ClientError>
Connects to the ViGEm bus and creates a Client.
Auto Trait Implementations§
impl Freeze for ClientBuilder
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnwindSafe for ClientBuilder
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