rust-sdk: reorder in client file

This commit is contained in:
Jon Häggblad
2023-01-10 01:43:50 +01:00
parent 666cbcf2cc
commit 2746cabecc
+19 -19
View File
@@ -38,25 +38,6 @@ pub struct ClientBuilder {
state: BuilderState,
}
pub struct Client {
nym_address: Recipient,
/// Keys handled by the client
key_manager: KeyManager,
client_input: ClientInput,
#[allow(dead_code)]
client_output: ClientOutput,
#[allow(dead_code)]
client_state: ClientState,
reconstructed_receiver: ReconstructedMessagesReceiver,
task_manager: TaskManager,
}
impl ClientBuilder {
/// Create a new mixnet client. If no config options are supplied, creates a new client with
/// ephemeral keys stored in RAM, which will be discarded at application close.
@@ -248,6 +229,25 @@ impl ClientBuilder {
}
}
pub struct Client {
nym_address: Recipient,
/// Keys handled by the client
key_manager: KeyManager,
client_input: ClientInput,
#[allow(dead_code)]
client_output: ClientOutput,
#[allow(dead_code)]
client_state: ClientState,
reconstructed_receiver: ReconstructedMessagesReceiver,
task_manager: TaskManager,
}
impl Client {
pub async fn connect() -> Result<Self> {
let client = ClientBuilder::new(None, None)?;