pub struct Builder<T>(/* private fields */);Expand description
A builder for HttpProxyConfig
Implementations§
Source§impl Builder<HostAndPortStage>
impl Builder<HostAndPortStage>
Sourcepub fn host_and_port(self, host_and_port: HostAndPort) -> Builder<Complete>
pub fn host_and_port(self, host_and_port: HostAndPort) -> Builder<Complete>
Sets the host_and_port field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn host_and_port(self, host_and_port: HostAndPort) -> Builder<Complete>
pub fn host_and_port(self, host_and_port: HostAndPort) -> Builder<Complete>
Sets the host_and_port field.
Sourcepub fn credentials(
self,
credentials: impl Into<Option<BasicCredentials>>,
) -> Builder<Complete>
pub fn credentials( self, credentials: impl Into<Option<BasicCredentials>>, ) -> Builder<Complete>
Sets the credentials field.
Sourcepub fn build(self) -> HttpProxyConfig
pub fn build(self) -> HttpProxyConfig
Consumes the builder, returning a HttpProxyConfig.
Trait Implementations§
Source§impl Default for Builder<HostAndPortStage>
impl Default for Builder<HostAndPortStage>
Auto Trait Implementations§
impl<T> Freeze for Builder<T>where
T: Freeze,
impl<T> RefUnwindSafe for Builder<T>where
T: RefUnwindSafe,
impl<T> Send for Builder<T>where
T: Send,
impl<T> Sync for Builder<T>where
T: Sync,
impl<T> Unpin for Builder<T>where
T: Unpin,
impl<T> UnwindSafe for Builder<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more