pub struct PairingSessionRequest {
pub session: PairingSession,
pub create_request: CreateSessionRequest,
}Expand description
The result of building a pairing session request.
Contains the live session (for ECDH later) and the registration payload to POST to the registry.
Usage:
ⓘ
let req = build_pairing_session_request(params)?;
client.post(url).json(&req.create_request).send().await?;
let shared_secret = req.session.complete_exchange(&device_pubkey)?;Fields§
§session: PairingSessionThe live pairing session with the ephemeral ECDH keypair.
create_request: CreateSessionRequestThe registration payload to POST to the registry.
Auto Trait Implementations§
impl Freeze for PairingSessionRequest
impl RefUnwindSafe for PairingSessionRequest
impl Send for PairingSessionRequest
impl Sync for PairingSessionRequest
impl Unpin for PairingSessionRequest
impl UnsafeUnpin for PairingSessionRequest
impl UnwindSafe for PairingSessionRequest
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