pub trait SocketRecvMessageMut: SocketRecvMessage<Payload: IoBufMut> {
// Required method
fn payload_mut(&mut self) -> &mut [u8] ⓘ;
}Expand description
A completed message with exclusively writable payload storage. Immutable receive implementations need not implement this capability.
Required Methods§
Sourcefn payload_mut(&mut self) -> &mut [u8] ⓘ
fn payload_mut(&mut self) -> &mut [u8] ⓘ
The same completed range as payload(), with exclusive access for parsing or decryption. Changes are visible through subsequent payload access and ownership transfer; metadata is outside this range.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".