Trait fidl::encoding::MessageBufFor
source · pub trait MessageBufFor<D: ResourceDialect>: Debug + Send + Sync {
// Required methods
fn new() -> Self;
fn split_mut(
&mut self,
) -> (&mut Vec<u8>, &mut Vec<<D::Handle as HandleFor<D>>::HandleInfo>);
// Provided method
fn shrink_bytes_to_fit(&mut self) { ... }
}
Expand description
Message buffer used to hold a message in a particular dialect.
Required Methods§
Provided Methods§
sourcefn shrink_bytes_to_fit(&mut self)
fn shrink_bytes_to_fit(&mut self)
Discard any allocated-but-unused space in the byte portion of this buffer.
Object Safety§
This trait is not object safe.