pub struct SystemBuilder { /* private fields */ }
Expand description
Builder for System
.
Implementations§
Source§impl SystemBuilder
impl SystemBuilder
Sourcepub fn addr_info_hints(&mut self, value: Option<AddrInfoHints>) -> &mut Self
pub fn addr_info_hints(&mut self, value: Option<AddrInfoHints>) -> &mut Self
Sourcepub fn service(&mut self, value: Option<String>) -> &mut Self
pub fn service(&mut self, value: Option<String>) -> &mut Self
The name of the service to resolve.
If set to None
, the network address of the node is resolved.
If set to Some
, the the requested service address is resolved.
This can be either a descriptive name or a numeric representation
suitable for use with the address family or families.
If the specified address family is AF_INET, AF_INET6, or AF_UNSPEC,
the service can be specified as a string specifying a decimal port
number.
Trait Implementations§
Source§impl Clone for SystemBuilder
impl Clone for SystemBuilder
Source§fn clone(&self) -> SystemBuilder
fn clone(&self) -> SystemBuilder
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 Default for SystemBuilder
impl Default for SystemBuilder
Source§fn default() -> SystemBuilder
fn default() -> SystemBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SystemBuilder
impl RefUnwindSafe for SystemBuilder
impl Send for SystemBuilder
impl Sync for SystemBuilder
impl Unpin for SystemBuilder
impl UnwindSafe for SystemBuilder
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