pub struct ClientOptions {
pub keypair: Keypair,
pub server_public_key: Vec<u8>,
pub pattern: Option<String>,
}
Expand description
Options used to create a new websocket client.
Fields§
§keypair: Keypair
Client static keypair.
server_public_key: Vec<u8>
Public key for the server to connect to.
pattern: Option<String>
Noise parameters pattern.
If no pattern is specified the default noise parameters pattern is used.
Implementations§
Source§impl ClientOptions
impl ClientOptions
Auto Trait Implementations§
impl Freeze for ClientOptions
impl RefUnwindSafe for ClientOptions
impl Send for ClientOptions
impl Sync for ClientOptions
impl Unpin for ClientOptions
impl UnwindSafe for ClientOptions
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