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

Initial, and, overall, padding instructions for channels

This is used both to generate the initial instructions, and to handle updates: when used for handling updates, it contains the last instructions that has been implemented.

Central code managing all channels will contain a ChannelPaddingInstructions, and use ChannelPaddingInstructionsUpdatesBuilder to both update those Instructions and generate ChannelPaddingInstructionsUpdates messages representing the changes.

The channel frontend (methods on Channel) processes ChannelPaddingInstructionsUpdates from the channel manager, possibly into channel-specific updates.

Default is a placeholder to use pending availability of a netdir etc.

Implementations

Create an update message which sets settings in self which are not equal to the initial behaviour of the reactor.

Used during channel startup.

Start building an update to channel padding instructions

The builder must not be dropped, once created; instead, finish must be called. So prepare your new values first, perhaps fallibly, and only then create and use the builder and send the update, infallibly.

(This is because the builder uses self: ChannelPaddingInstructions to track which values have changed, and the values in self are updated immediately by the field update methods.)

Panics

ChannelPaddingInstructionsUpdatesBuilder panics if it is dropped.

Trait Implementations

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
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

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 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.
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