Enum links_nonblocking::prelude::ConId
source · pub enum ConId {
Initiator {
name: String,
local: Option<SocketAddr>,
peer: SocketAddr,
},
Acceptor {
name: String,
local: SocketAddr,
peer: Option<SocketAddr>,
},
}
Expand description
Connection identifier
#Variants
- Initiator: Indicates a Clt connection or the side of the link which initiated the connection
- Acceptor: Indicates a Svc connection or the side of the link which accepted the connection
Variants§
Implementations§
source§impl ConId
impl ConId
pub fn clt(name: Option<&str>, local: Option<&str>, peer: &str) -> ConId
pub fn set_local(&mut self, local: SocketAddr)
pub fn set_peer(&mut self, peer: SocketAddr)
pub fn svc(name: Option<&str>, local: &str, peer: Option<&str>) -> ConId
pub fn name(&self) -> &str
pub fn get_peer(&self) -> Option<SocketAddr>
pub fn get_local(&self) -> Option<SocketAddr>
pub fn from_same_lineage(&self, other: &ConId) -> bool
Trait Implementations§
source§impl PartialEq for ConId
impl PartialEq for ConId
impl StructuralPartialEq for ConId
Auto Trait Implementations§
impl RefUnwindSafe for ConId
impl Send for ConId
impl Sync for ConId
impl Unpin for ConId
impl UnwindSafe for ConId
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