pub struct MemberHubInvitation { /* private fields */ }Expand description
A member-hub invitation (QarMemberHubInvitation), destroyed on drop
(qar_member_hub_invitation_handle_destroy). A secret bearer credential: send its bytes only
over a trusted channel and never log them. The primary hub’s operator sees it in the
visualizer and can revoke it.
Implementations§
Source§impl MemberHubInvitation
impl MemberHubInvitation
Sourcepub fn serialize(&self) -> Result<Vec<u8>>
pub fn serialize(&self) -> Result<Vec<u8>>
The invitation’s bytes for the application’s own channel
(qar_member_hub_invitation_serialized_size, qar_member_hub_invitation_serialize):
UTF-8 JSON of at most 16 KiB that carries the invitation’s secret.
Sourcepub fn as_raw(&self) -> *mut QarMemberHubInvitation
pub fn as_raw(&self) -> *mut QarMemberHubInvitation
The QarMemberHubInvitation handle, for raw calls through Library::raw_api. Taking
the pointer is safe; using it is unsafe, under the rules of crate::Session::as_raw
for an invitation: valid while this value lives, never destroyed by the caller.
Trait Implementations§
Source§impl Debug for MemberHubInvitation
impl Debug for MemberHubInvitation
Source§impl Drop for MemberHubInvitation
impl Drop for MemberHubInvitation
Auto Trait Implementations§
impl !Send for MemberHubInvitation
impl !Sync for MemberHubInvitation
impl Freeze for MemberHubInvitation
impl RefUnwindSafe for MemberHubInvitation
impl Unpin for MemberHubInvitation
impl UnsafeUnpin for MemberHubInvitation
impl UnwindSafe for MemberHubInvitation
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