pub struct ChannelPaddingInstructionsUpdatesBuilder<'c> { /* private fields */ }
Expand description

Builder for a channels padding instructions update

Obtain this from ChannelPaddingInstructions::update, call zero or more setter methods, call finish, and then send the resulting message.

Panics

Panics if dropped. Instead, call finish.

Implementations

Whether to send padding

(Adds this setting to the update, if it has changed.)

Padding timing parameters

This is in abeyance if send_padding is false; we still pass it because the usual case is that padding is enabled/disabled rather than the parameters changing, so the padding timer always keeps parameters, even when disabled.

(Adds this setting to the update, if it has changed.)

Channel padding negotiation cell

In ChannelPaddingInstructions, and when set via Builder, this is the PADDING_NEGOTIATE cell which should be used when we want to instruct our peer (the guard) to do padding like we have concluded we want.

(An initial PaddingNegotiate::start_default() is elided in Channel::engage_padding_activities since that is what the peer would do anyway.)

(Adds this setting to the update, if it has changed.)

Finalise the update

If nothing actually changed, returns None. (Tracking this, and returning None, allows us to avoid bothering every channel with a null update.)

If Some is returned, the update must be implemented, since the underlying tracking ChannelPaddingInstructions has already been updated.

Trait Implementations

Executes the destructor for this type. 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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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 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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more