#[non_exhaustive]pub struct InboundConnectionBuilder { /* private fields */ }
Expand description
A builder for InboundConnection
.
Implementations§
source§impl InboundConnectionBuilder
impl InboundConnectionBuilder
sourcepub fn local_domain_info(self, input: DomainInformationContainer) -> Self
pub fn local_domain_info(self, input: DomainInformationContainer) -> Self
Information about the source (local) domain.
sourcepub fn set_local_domain_info(
self,
input: Option<DomainInformationContainer>,
) -> Self
pub fn set_local_domain_info( self, input: Option<DomainInformationContainer>, ) -> Self
Information about the source (local) domain.
sourcepub fn get_local_domain_info(&self) -> &Option<DomainInformationContainer>
pub fn get_local_domain_info(&self) -> &Option<DomainInformationContainer>
Information about the source (local) domain.
sourcepub fn remote_domain_info(self, input: DomainInformationContainer) -> Self
pub fn remote_domain_info(self, input: DomainInformationContainer) -> Self
Information about the destination (remote) domain.
sourcepub fn set_remote_domain_info(
self,
input: Option<DomainInformationContainer>,
) -> Self
pub fn set_remote_domain_info( self, input: Option<DomainInformationContainer>, ) -> Self
Information about the destination (remote) domain.
sourcepub fn get_remote_domain_info(&self) -> &Option<DomainInformationContainer>
pub fn get_remote_domain_info(&self) -> &Option<DomainInformationContainer>
Information about the destination (remote) domain.
sourcepub fn connection_id(self, input: impl Into<String>) -> Self
pub fn connection_id(self, input: impl Into<String>) -> Self
The unique identifier of the connection.
sourcepub fn set_connection_id(self, input: Option<String>) -> Self
pub fn set_connection_id(self, input: Option<String>) -> Self
The unique identifier of the connection.
sourcepub fn get_connection_id(&self) -> &Option<String>
pub fn get_connection_id(&self) -> &Option<String>
The unique identifier of the connection.
sourcepub fn connection_status(self, input: InboundConnectionStatus) -> Self
pub fn connection_status(self, input: InboundConnectionStatus) -> Self
The current status of the connection.
sourcepub fn set_connection_status(
self,
input: Option<InboundConnectionStatus>,
) -> Self
pub fn set_connection_status( self, input: Option<InboundConnectionStatus>, ) -> Self
The current status of the connection.
sourcepub fn get_connection_status(&self) -> &Option<InboundConnectionStatus>
pub fn get_connection_status(&self) -> &Option<InboundConnectionStatus>
The current status of the connection.
sourcepub fn connection_mode(self, input: ConnectionMode) -> Self
pub fn connection_mode(self, input: ConnectionMode) -> Self
The connection mode.
sourcepub fn set_connection_mode(self, input: Option<ConnectionMode>) -> Self
pub fn set_connection_mode(self, input: Option<ConnectionMode>) -> Self
The connection mode.
sourcepub fn get_connection_mode(&self) -> &Option<ConnectionMode>
pub fn get_connection_mode(&self) -> &Option<ConnectionMode>
The connection mode.
sourcepub fn build(self) -> InboundConnection
pub fn build(self) -> InboundConnection
Consumes the builder and constructs a InboundConnection
.
Trait Implementations§
source§impl Clone for InboundConnectionBuilder
impl Clone for InboundConnectionBuilder
source§fn clone(&self) -> InboundConnectionBuilder
fn clone(&self) -> InboundConnectionBuilder
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 InboundConnectionBuilder
impl Debug for InboundConnectionBuilder
source§impl Default for InboundConnectionBuilder
impl Default for InboundConnectionBuilder
source§fn default() -> InboundConnectionBuilder
fn default() -> InboundConnectionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for InboundConnectionBuilder
impl PartialEq for InboundConnectionBuilder
source§fn eq(&self, other: &InboundConnectionBuilder) -> bool
fn eq(&self, other: &InboundConnectionBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InboundConnectionBuilder
Auto Trait Implementations§
impl Freeze for InboundConnectionBuilder
impl RefUnwindSafe for InboundConnectionBuilder
impl Send for InboundConnectionBuilder
impl Sync for InboundConnectionBuilder
impl Unpin for InboundConnectionBuilder
impl UnwindSafe for InboundConnectionBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.