Struct arrow_ipc::convert::MessageBuffer
source · pub struct MessageBuffer(/* private fields */);
Expand description
An owned container for a validated Message
Safely decoding a flatbuffer requires validating the various embedded offsets,
see Verifier
. This is a potentially expensive operation, and it is therefore desirable
to only do this once. crate::root_as_message
performs this validation on construction,
however, it returns a Message
borrowing the provided byte slice. This prevents
storing this Message
in the same data structure that owns the buffer, as this
would require self-referential borrows.
MessageBuffer
solves this problem by providing a safe API for a Message
without a lifetime bound.
Implementations§
source§impl MessageBuffer
impl MessageBuffer
Trait Implementations§
source§impl Clone for MessageBuffer
impl Clone for MessageBuffer
source§fn clone(&self) -> MessageBuffer
fn clone(&self) -> MessageBuffer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for MessageBuffer
impl RefUnwindSafe for MessageBuffer
impl Send for MessageBuffer
impl Sync for MessageBuffer
impl Unpin for MessageBuffer
impl UnwindSafe for MessageBuffer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)