#[non_exhaustive]pub struct Padding {}Expand description
A Padding message is a fixed-length message on a channel that is ignored.
Padding message can be used to disguise the true amount of data on a channel, or as a “keep-alive”.
The correct response to a padding cell is to drop it and do nothing.
Implementations§
Trait Implementations§
source§impl Body for Padding
impl Body for Padding
source§fn encode_onto<W: Writer + ?Sized>(self, _w: &mut W) -> EncodeResult<()>
fn encode_onto<W: Writer + ?Sized>(self, _w: &mut W) -> EncodeResult<()>
Consume this message and encode its body onto
w. Read moresource§fn decode_from_reader(r: &mut Reader<'_>) -> Result<Self>
fn decode_from_reader(r: &mut Reader<'_>) -> Result<Self>
Decode a channel cell body from a provided reader.
source§impl ChanMsg for Padding
impl ChanMsg for Padding
source§fn encode_onto<W: Writer + ?Sized>(self, w: &mut W) -> EncodeResult<()>
fn encode_onto<W: Writer + ?Sized>(self, w: &mut W) -> EncodeResult<()>
Write the body of this message (not including length or command).
source§impl From<Padding> for AnyChanCell
impl From<Padding> for AnyChanCell
source§fn from(body: Padding) -> AnyChanCell
fn from(body: Padding) -> AnyChanCell
Converts to this type from the input type.
source§impl From<Padding> for AnyChanMsg
impl From<Padding> for AnyChanMsg
source§fn from(m: Padding) -> AnyChanMsg
fn from(m: Padding) -> AnyChanMsg
Converts to this type from the input type.