#[non_exhaustive]pub struct NeighborConnectionDetail {
pub source_server_id: String,
pub destination_server_id: String,
pub destination_port: Option<i32>,
pub transport_protocol: Option<String>,
pub connections_count: i64,
}Expand description
Details about neighboring servers.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source_server_id: StringThe ID of the server that opened the network connection.
destination_server_id: StringThe ID of the server that accepted the network connection.
destination_port: Option<i32>The destination network port for the connection.
transport_protocol: Option<String>The network protocol used for the connection.
connections_count: i64The number of open network connections with the neighboring server.
Implementations§
source§impl NeighborConnectionDetail
impl NeighborConnectionDetail
sourcepub fn source_server_id(&self) -> &str
pub fn source_server_id(&self) -> &str
The ID of the server that opened the network connection.
sourcepub fn destination_server_id(&self) -> &str
pub fn destination_server_id(&self) -> &str
The ID of the server that accepted the network connection.
sourcepub fn destination_port(&self) -> Option<i32>
pub fn destination_port(&self) -> Option<i32>
The destination network port for the connection.
sourcepub fn transport_protocol(&self) -> Option<&str>
pub fn transport_protocol(&self) -> Option<&str>
The network protocol used for the connection.
sourcepub fn connections_count(&self) -> i64
pub fn connections_count(&self) -> i64
The number of open network connections with the neighboring server.
source§impl NeighborConnectionDetail
impl NeighborConnectionDetail
sourcepub fn builder() -> NeighborConnectionDetailBuilder
pub fn builder() -> NeighborConnectionDetailBuilder
Creates a new builder-style object to manufacture NeighborConnectionDetail.
Trait Implementations§
source§impl Clone for NeighborConnectionDetail
impl Clone for NeighborConnectionDetail
source§fn clone(&self) -> NeighborConnectionDetail
fn clone(&self) -> NeighborConnectionDetail
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 NeighborConnectionDetail
impl Debug for NeighborConnectionDetail
source§impl PartialEq for NeighborConnectionDetail
impl PartialEq for NeighborConnectionDetail
source§fn eq(&self, other: &NeighborConnectionDetail) -> bool
fn eq(&self, other: &NeighborConnectionDetail) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for NeighborConnectionDetail
Auto Trait Implementations§
impl Freeze for NeighborConnectionDetail
impl RefUnwindSafe for NeighborConnectionDetail
impl Send for NeighborConnectionDetail
impl Sync for NeighborConnectionDetail
impl Unpin for NeighborConnectionDetail
impl UnwindSafe for NeighborConnectionDetail
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.