pub trait SendBuffer: Buffer {
type Payload<'a>: InnerPacketBuilder + Payload + Debug + 'a;
// Required methods
fn mark_read(&mut self, count: usize);
fn peek_with<'a, F, R>(&'a mut self, offset: usize, f: F) -> R
where F: FnOnce(Self::Payload<'a>) -> R;
}Expand description
A buffer supporting TCP sending operations.
Required Associated Types§
Sourcetype Payload<'a>: InnerPacketBuilder + Payload + Debug + 'a
type Payload<'a>: InnerPacketBuilder + Payload + Debug + 'a
The payload type given to peek_with.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.