Struct netmgr::HandleData
source · [−]pub struct HandleData {
pub(crate) conn_id: AtomicU64,
pub(crate) endpoints: Mutex<BTreeMap<ConnectionId, EndPointKey>>,
}
Fields
conn_id: AtomicU64
endpoints: Mutex<BTreeMap<ConnectionId, EndPointKey>>
Implementations
sourceimpl HandleData
impl HandleData
pub fn new_conn_id(&self) -> ConnectionId
pub fn get_endpoint_info(&self, id: ConnectionId) -> Option<EndPointKey>
pub fn add_endpoint_info(&self, id: ConnectionId, info: EndPointKey)
Trait Implementations
Auto Trait Implementations
impl !ObjSafe for HandleData
impl RefUnwindSafe for HandleData
impl Send for HandleData
impl Sync for HandleData
impl Unpin for HandleData
impl UnwindSafe for HandleData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more