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