#[non_exhaustive]pub struct DataflowEndpointBuilder { /* private fields */ }
Expand description
A builder for DataflowEndpoint
.
Implementations§
source§impl DataflowEndpointBuilder
impl DataflowEndpointBuilder
sourcepub fn address(self, input: SocketAddress) -> Self
pub fn address(self, input: SocketAddress) -> Self
Socket address of a dataflow endpoint.
sourcepub fn set_address(self, input: Option<SocketAddress>) -> Self
pub fn set_address(self, input: Option<SocketAddress>) -> Self
Socket address of a dataflow endpoint.
sourcepub fn get_address(&self) -> &Option<SocketAddress>
pub fn get_address(&self) -> &Option<SocketAddress>
Socket address of a dataflow endpoint.
sourcepub fn status(self, input: EndpointStatus) -> Self
pub fn status(self, input: EndpointStatus) -> Self
Status of a dataflow endpoint.
sourcepub fn set_status(self, input: Option<EndpointStatus>) -> Self
pub fn set_status(self, input: Option<EndpointStatus>) -> Self
Status of a dataflow endpoint.
sourcepub fn get_status(&self) -> &Option<EndpointStatus>
pub fn get_status(&self) -> &Option<EndpointStatus>
Status of a dataflow endpoint.
sourcepub fn mtu(self, input: i32) -> Self
pub fn mtu(self, input: i32) -> Self
Maximum transmission unit (MTU) size in bytes of a dataflow endpoint.
sourcepub fn set_mtu(self, input: Option<i32>) -> Self
pub fn set_mtu(self, input: Option<i32>) -> Self
Maximum transmission unit (MTU) size in bytes of a dataflow endpoint.
sourcepub fn get_mtu(&self) -> &Option<i32>
pub fn get_mtu(&self) -> &Option<i32>
Maximum transmission unit (MTU) size in bytes of a dataflow endpoint.
sourcepub fn build(self) -> DataflowEndpoint
pub fn build(self) -> DataflowEndpoint
Consumes the builder and constructs a DataflowEndpoint
.
Trait Implementations§
source§impl Clone for DataflowEndpointBuilder
impl Clone for DataflowEndpointBuilder
source§fn clone(&self) -> DataflowEndpointBuilder
fn clone(&self) -> DataflowEndpointBuilder
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 DataflowEndpointBuilder
impl Debug for DataflowEndpointBuilder
source§impl Default for DataflowEndpointBuilder
impl Default for DataflowEndpointBuilder
source§fn default() -> DataflowEndpointBuilder
fn default() -> DataflowEndpointBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DataflowEndpointBuilder
impl PartialEq for DataflowEndpointBuilder
source§fn eq(&self, other: &DataflowEndpointBuilder) -> bool
fn eq(&self, other: &DataflowEndpointBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DataflowEndpointBuilder
Auto Trait Implementations§
impl Freeze for DataflowEndpointBuilder
impl RefUnwindSafe for DataflowEndpointBuilder
impl Send for DataflowEndpointBuilder
impl Sync for DataflowEndpointBuilder
impl Unpin for DataflowEndpointBuilder
impl UnwindSafe for DataflowEndpointBuilder
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.