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