#[repr(C)]pub struct QarOnboardPeerIdExt {
pub header: QarStructureHeader,
pub peer_id: QarPeerId,
}Expand description
@brief Extension: join the session under a peer id chosen by the caller.
@deprecated A local app gets its peer id from the hub, remembered per app tag (QarOnboardLocalAppTagExt), and a co-process from its invite. Kept working for applications that already use it.
Chain into QarOnboardInit.header.next, next to QarOnboardCodeExt or QarOnboardInviteExt, for a process whose peer id was planned and announced to the session by someone else, so the process must appear under that id.
- Absent: the process takes the peer id the hub bound to the code or invite (a co-process invite always carries one), else a fresh one.
- Present: it must equal any peer id the hub bound to the code or invite; a different id fails onboarding.
- Refused with QarOnboardLocalAppExt, which gets its peer id from the hub (QAR_STATUS_ARGUMENT_NOT_SUPPORTED). The id is persisted with the slot, so a later rejoin keeps it.
Fields§
§header: QarStructureHeader< QAR_STRUCTURE_TYPE_RUNTIME_ONBOARD_PEER_ID_EXT
peer_id: QarPeerIdRequired; a zero id is rejected.
Trait Implementations§
Source§impl Clone for QarOnboardPeerIdExt
impl Clone for QarOnboardPeerIdExt
impl Copy for QarOnboardPeerIdExt
Source§impl Debug for QarOnboardPeerIdExt
impl Debug for QarOnboardPeerIdExt
Source§impl PartialEq for QarOnboardPeerIdExt
impl PartialEq for QarOnboardPeerIdExt
impl StructuralPartialEq for QarOnboardPeerIdExt
Auto Trait Implementations§
impl !Send for QarOnboardPeerIdExt
impl !Sync for QarOnboardPeerIdExt
impl Freeze for QarOnboardPeerIdExt
impl RefUnwindSafe for QarOnboardPeerIdExt
impl Unpin for QarOnboardPeerIdExt
impl UnsafeUnpin for QarOnboardPeerIdExt
impl UnwindSafe for QarOnboardPeerIdExt
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