pub struct ChannelPaddingInstructionsUpdates { /* private fields */ }Expand description
New instructions to the reactor
Can contain updates to each of the fields in ChannelPaddingInstructions.
Constructed via ChannelPaddingInstructionsUpdatesBuilder,
which is obtained from ChannelPaddingInstructions::start_update.
Sent to all channel implementations, when they ought to change their behaviour.
Implementations
sourceimpl ChannelPaddingInstructionsUpdates
impl ChannelPaddingInstructionsUpdates
sourcepub fn combine(&mut self, more: &Self)
pub fn combine(&mut self, more: &Self)
Combines more into self
Values from more override ones in self.
sourcepub fn padding_enable(&self) -> Option<&bool>
Available on crate feature testing only.
pub fn padding_enable(&self) -> Option<&bool>
testing only.Whether to send padding
Accessor. For testing the logic which generates channel padding control instructions.
sourcepub fn padding_parameters(&self) -> Option<&Parameters>
Available on crate feature testing only.
pub fn padding_parameters(&self) -> Option<&Parameters>
testing only.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.
Accessor. For testing the logic which generates channel padding control instructions.
sourcepub fn padding_negotiate(&self) -> Option<&PaddingNegotiate>
Available on crate feature testing only.
pub fn padding_negotiate(&self) -> Option<&PaddingNegotiate>
testing only.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.)
Accessor. For testing the logic which generates channel padding control instructions.
Trait Implementations
sourceimpl Clone for ChannelPaddingInstructionsUpdates
impl Clone for ChannelPaddingInstructionsUpdates
sourcefn clone(&self) -> ChannelPaddingInstructionsUpdates
fn clone(&self) -> ChannelPaddingInstructionsUpdates
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more