pub struct HostAndPortBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<S: State> HostAndPortBuilder<S>
impl<S: State> HostAndPortBuilder<S>
Sourcepub fn build(self) -> HostAndPortwhere
S: IsComplete,
pub fn build(self) -> HostAndPortwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn host(self, value: String) -> HostAndPortBuilder<SetHost<S>>where
S::Host: IsUnset,
pub fn host(self, value: String) -> HostAndPortBuilder<SetHost<S>>where
S::Host: IsUnset,
Required.
Sourcepub fn port(self, value: u16) -> HostAndPortBuilder<SetPort<S>>where
S::Port: IsUnset,
pub fn port(self, value: u16) -> HostAndPortBuilder<SetPort<S>>where
S::Port: IsUnset,
Required.
Auto Trait Implementations§
impl<S> Freeze for HostAndPortBuilder<S>
impl<S> RefUnwindSafe for HostAndPortBuilder<S>
impl<S> Send for HostAndPortBuilder<S>
impl<S> Sync for HostAndPortBuilder<S>
impl<S> Unpin for HostAndPortBuilder<S>
impl<S> UnwindSafe for HostAndPortBuilder<S>
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