pub struct ServiceUpOptsBuilder { /* private fields */ }
Expand description
Builder for ServiceUpOpts
.
Implementations§
Source§impl ServiceUpOptsBuilder
impl ServiceUpOptsBuilder
Sourcepub fn ports<VALUE: Into<Vec<PortForward>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn ports<VALUE: Into<Vec<PortForward>>>( &mut self, value: VALUE, ) -> &mut Self
List of frontend/backend port mappings to forward. Frontend is the port accepting traffic on the host, backend is the service port.
Sourcepub fn random<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn random<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Bind each tunnel port to a random port on the host.
Sourcepub fn build(&self) -> Result<ServiceUpOpts, ServiceUpOptsBuilderError>
pub fn build(&self) -> Result<ServiceUpOpts, ServiceUpOptsBuilderError>
Trait Implementations§
Source§impl Clone for ServiceUpOptsBuilder
impl Clone for ServiceUpOptsBuilder
Source§fn clone(&self) -> ServiceUpOptsBuilder
fn clone(&self) -> ServiceUpOptsBuilder
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 moreAuto Trait Implementations§
impl Freeze for ServiceUpOptsBuilder
impl RefUnwindSafe for ServiceUpOptsBuilder
impl Send for ServiceUpOptsBuilder
impl Sync for ServiceUpOptsBuilder
impl Unpin for ServiceUpOptsBuilder
impl UnwindSafe for ServiceUpOptsBuilder
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