#[non_exhaustive]pub struct VirtualRouterListenerBuilder { /* private fields */ }
Expand description
A builder for VirtualRouterListener
.
Implementations§
source§impl VirtualRouterListenerBuilder
impl VirtualRouterListenerBuilder
sourcepub fn port_mapping(self, input: PortMapping) -> Self
pub fn port_mapping(self, input: PortMapping) -> Self
An object that represents a port mapping.
This field is required.sourcepub fn set_port_mapping(self, input: Option<PortMapping>) -> Self
pub fn set_port_mapping(self, input: Option<PortMapping>) -> Self
An object that represents a port mapping.
sourcepub fn get_port_mapping(&self) -> &Option<PortMapping>
pub fn get_port_mapping(&self) -> &Option<PortMapping>
An object that represents a port mapping.
sourcepub fn build(self) -> VirtualRouterListener
pub fn build(self) -> VirtualRouterListener
Consumes the builder and constructs a VirtualRouterListener
.
Trait Implementations§
source§impl Clone for VirtualRouterListenerBuilder
impl Clone for VirtualRouterListenerBuilder
source§fn clone(&self) -> VirtualRouterListenerBuilder
fn clone(&self) -> VirtualRouterListenerBuilder
Returns a copy 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 Debug for VirtualRouterListenerBuilder
impl Debug for VirtualRouterListenerBuilder
source§impl Default for VirtualRouterListenerBuilder
impl Default for VirtualRouterListenerBuilder
source§fn default() -> VirtualRouterListenerBuilder
fn default() -> VirtualRouterListenerBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for VirtualRouterListenerBuilder
impl PartialEq for VirtualRouterListenerBuilder
source§fn eq(&self, other: &VirtualRouterListenerBuilder) -> bool
fn eq(&self, other: &VirtualRouterListenerBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VirtualRouterListenerBuilder
Auto Trait Implementations§
impl Freeze for VirtualRouterListenerBuilder
impl RefUnwindSafe for VirtualRouterListenerBuilder
impl Send for VirtualRouterListenerBuilder
impl Sync for VirtualRouterListenerBuilder
impl Unpin for VirtualRouterListenerBuilder
impl UnwindSafe for VirtualRouterListenerBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.