pub struct PaddingNegotiate { /* private fields */ }
Expand description

A PaddingNegotiate message is used to negotiate channel padding.

Sent by a client to its guard node, to instruct the relay to enable/disable channel padding. (Not relevant for channels used only for directory lookups, nor inter-relay channels.) See padding-spec.txt, section 2.2.

This message is constructed in the channel manager and transmitted by the reactor.

The Default impl is the same as start_default()

Implementations

Create a new PADDING_NEGOTIATE START message requesting consensus timing parameters.

This message restores the state to the one which exists at channel startup.

Create a new PADDING_NEGOTIATE START message.

Create a new PADDING_NEGOTIATE STOP message.

Available on crate feature testing only.

Construct from the three fields: command, low_ms, high_ms, as a tupe

For testing only

Trait Implementations

Convert this type into a ChanMsg, wrapped as appropriate.
Consume this message and encode its body onto w. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Try to extract an object of this type from a Reader. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.