Struct libwhisper::session::ClientSession
[−]
[src]
pub struct ClientSession { /* fields omitted */ }
Client-side session.
Methods
impl ClientSession
[src]
fn new(
local_identity_keypair: KeyPair,
remote_identity_key: PublicKey
) -> ClientSession
[src]
local_identity_keypair: KeyPair,
remote_identity_key: PublicKey
) -> ClientSession
Create new session. This method is private because it will create session with a few missing values.
fn make_hello(&mut self) -> Frame
[src]
Helper to make Hello frame. Client workflow.
fn make_initiate(&mut self, welcome: &Frame) -> WhisperResult<Frame>
[src]
Helper to make am Initiate frame, a reply to Welcome frame. Client workflow.
fn read_ready(&mut self, ready: &Frame) -> WhisperResult<EstablishedSession>
[src]
Verify that reply to initiate frame is correct ready frame. Changes session state if so.
Trait Implementations
impl Debug for ClientSession
[src]
impl Clone for ClientSession
[src]
fn clone(&self) -> ClientSession
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more