pub struct Registry<LOCAL, REMOTE> {
pub local: LOCAL,
pub remote: REMOTE,
/* private fields */
}Expand description
Connection ID registry.
localrepresents the management of connection IDs issued by me to peer,remoterepresents the reception of connection IDs issued by peer, which will be used by the path.
Fields§
§local: LOCAL§remote: REMOTEImplementations§
Source§impl<LOCAL, REMOTE> Registry<LOCAL, REMOTE>
impl<LOCAL, REMOTE> Registry<LOCAL, REMOTE>
Sourcepub fn new(
role: Role,
origin_dcid: ConnectionId,
local: LOCAL,
remote: REMOTE,
) -> Self
pub fn new( role: Role, origin_dcid: ConnectionId, local: LOCAL, remote: REMOTE, ) -> Self
Create a new connection ID registry.
pub fn role(&self) -> Role
pub fn origin_dcid(&self) -> ConnectionId
Trait Implementations§
Auto Trait Implementations§
impl<LOCAL, REMOTE> Freeze for Registry<LOCAL, REMOTE>
impl<LOCAL, REMOTE> RefUnwindSafe for Registry<LOCAL, REMOTE>where
LOCAL: RefUnwindSafe,
REMOTE: RefUnwindSafe,
impl<LOCAL, REMOTE> Send for Registry<LOCAL, REMOTE>
impl<LOCAL, REMOTE> Sync for Registry<LOCAL, REMOTE>
impl<LOCAL, REMOTE> Unpin for Registry<LOCAL, REMOTE>
impl<LOCAL, REMOTE> UnsafeUnpin for Registry<LOCAL, REMOTE>where
LOCAL: UnsafeUnpin,
REMOTE: UnsafeUnpin,
impl<LOCAL, REMOTE> UnwindSafe for Registry<LOCAL, REMOTE>where
LOCAL: UnwindSafe,
REMOTE: UnwindSafe,
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