pub struct Message<'a> {
pub _tab: Table<'a>,
}
Fields§
§_tab: Table<'a>
Implementations§
source§impl<'a> Message<'a>
impl<'a> Message<'a>
pub const VT_VERSION: u16 = 4u16
pub const VT_HEADER_TYPE: u16 = 6u16
pub const VT_HEADER: u16 = 8u16
pub const VT_BODYLENGTH: u16 = 10u16
pub const VT_CUSTOM_METADATA: u16 = 12u16
pub unsafe fn init_from_table(table: Table<'a>) -> Message<'a>
pub fn create<'bldr, 'args, 'mut_bldr>(
_fbb: &'mut_bldr mut FlatBufferBuilder<'bldr>,
args: &'args MessageArgs<'args>
) -> WIPOffset<Message<'bldr>>where
'bldr: 'args,
'args: 'mut_bldr,
pub fn version(&self) -> MetadataVersion
pub fn header_type(&self) -> MessageHeader
pub fn header(&self) -> Option<Table<'a>>
pub fn bodyLength(&self) -> i64
pub fn custom_metadata( &self ) -> Option<Vector<'a, ForwardsUOffset<KeyValue<'a>>>>
pub fn header_as_schema(&self) -> Option<Schema<'a>>
pub fn header_as_dictionary_batch(&self) -> Option<DictionaryBatch<'a>>
pub fn header_as_record_batch(&self) -> Option<RecordBatch<'a>>
pub fn header_as_tensor(&self) -> Option<Tensor<'a>>
pub fn header_as_sparse_tensor(&self) -> Option<SparseTensor<'a>>
Trait Implementations§
source§impl<'a> PartialEq for Message<'a>
impl<'a> PartialEq for Message<'a>
source§impl Verifiable for Message<'_>
impl Verifiable for Message<'_>
source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos
in the verifier’s buffer.
Should not need to be called directly.impl<'a> Copy for Message<'a>
impl<'a> StructuralPartialEq for Message<'a>
Auto Trait Implementations§
impl<'a> Freeze for Message<'a>
impl<'a> RefUnwindSafe for Message<'a>
impl<'a> Send for Message<'a>
impl<'a> Sync for Message<'a>
impl<'a> Unpin for Message<'a>
impl<'a> UnwindSafe for Message<'a>
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.