Struct bip_handshake::Extensions [] [src]

pub struct Extensions { /* fields omitted */ }

Extensions supported by either end of a handshake.

Methods

impl Extensions
[src]

[src]

Create a new Extensions with zero extensions.

[src]

Create a new Extensions by parsing the given bytes.

[src]

Add the given extension to the list of supported Extensions.

[src]

Remove the given extension from the list of supported Extensions.

[src]

Check if a given extension is activated.

[src]

Write the Extensions to the given writer.

[src]

Create a union of the two extensions.

This is useful for getting the extensions that both clients support.

Trait Implementations

impl Copy for Extensions
[src]

impl Clone for Extensions
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Extensions
[src]

impl Hash for Extensions
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for Extensions
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for Extensions
[src]

[src]

Formats the value using the given formatter.

impl From<[u8; 8]> for Extensions
[src]

[src]

Performs the conversion.