pub struct PvaClientBuilder { /* private fields */ }Expand description
Implementations§
Source§impl PvaClientBuilder
impl PvaClientBuilder
Sourcepub fn no_broadcast(self) -> Self
pub fn no_broadcast(self) -> Self
Disable UDP broadcast search (use name servers only).
Sourcepub fn name_server(self, addr: SocketAddr) -> Self
pub fn name_server(self, addr: SocketAddr) -> Self
Add a PVA name-server address for TCP search.
Sourcepub fn authnz_user(self, user: impl Into<String>) -> Self
pub fn authnz_user(self, user: impl Into<String>) -> Self
Override the authentication user.
Sourcepub fn authnz_host(self, host: impl Into<String>) -> Self
pub fn authnz_host(self, host: impl Into<String>) -> Self
Override the authentication host.
Sourcepub fn server_addr(self, addr: SocketAddr) -> Self
pub fn server_addr(self, addr: SocketAddr) -> Self
Set an explicit server address, bypassing UDP search.
Sourcepub fn search_addr(self, addr: IpAddr) -> Self
pub fn search_addr(self, addr: IpAddr) -> Self
Set the search target IP address.
Auto Trait Implementations§
impl Freeze for PvaClientBuilder
impl RefUnwindSafe for PvaClientBuilder
impl Send for PvaClientBuilder
impl Sync for PvaClientBuilder
impl Unpin for PvaClientBuilder
impl UnsafeUnpin for PvaClientBuilder
impl UnwindSafe for PvaClientBuilder
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