pub struct Registration { /* private fields */ }Available on crate feature
client only.Expand description
Step 0: what was agreed out of band.
This credentials token along with the versions endpoint SHOULD be sent to the Sender in a secure way that is outside the scope of this protocol.
Implementations§
Source§impl Registration
impl Registration
Sourcepub fn new(versions_url: Url, token_a: CredentialsToken) -> Self
pub fn new(versions_url: Url, token_a: CredentialsToken) -> Self
Starts a registration with the versions URL and CREDENTIALS_TOKEN_A.
Sourcepub fn with_quirks(self, quirks: Quirks) -> Self
pub fn with_quirks(self, quirks: Quirks) -> Self
Uses a specific interoperability profile while talking to this peer.
Useful when the peer is known to be a 2.1.1 implementation before its version is discovered, since those do not Base64-encode the token.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Registration
impl RefUnwindSafe for Registration
impl Send for Registration
impl Sync for Registration
impl Unpin for Registration
impl UnsafeUnpin for Registration
impl UnwindSafe for Registration
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