Struct hypercore_protocol::Options[][src]

pub struct Options {
    pub is_initiator: bool,
    pub noise: bool,
    pub encrypted: bool,
}
Expand description

Options for a Protocol instance.

Fields

is_initiator: bool

Whether this peer initiated the IO connection for this protoccol

noise: bool

Enable or disable the handshake. Disabling the handshake will also disable capabilitity verification. Don’t disable this if you’re not 100% sure you want this.

encrypted: bool

Enable or disable transport encryption.

Implementations

Create with default options.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.