pub struct ClientBuilder { /* private fields */ }Expand description
Build a Client with the pattern everyone likes.
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new ClientBuilder. Without changes this will build as a Client with a socket, on a port chosen by the OS, connected to VRCHAT_OSC_ADDR.
pub fn with_server_ip(self, ip: IpAddr) -> ClientBuilder
pub fn with_server_port(self, port: u16) -> ClientBuilder
Sourcepub fn with_client_port(self, port: u16) -> ClientBuilder
pub fn with_client_port(self, port: u16) -> ClientBuilder
Port is already chosen by the OS if this is not used.
Trait Implementations§
Source§impl Clone for ClientBuilder
impl Clone for ClientBuilder
Source§fn clone(&self) -> ClientBuilder
fn clone(&self) -> ClientBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientBuilder
impl Debug for ClientBuilder
impl Copy for ClientBuilder
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