[][src]Struct arcon::prelude::messages::KeyedElement

pub struct KeyedElement {
    pub timestamp: u64,
    pub key: u64,
    pub data: Vec<u8>,
    pub task_id: String,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

timestamp: u64key: u64data: Vec<u8>task_id: Stringunknown_fields: UnknownFieldscached_size: CachedSize

Methods

impl KeyedElement[src]

pub fn new() -> KeyedElement[src]

pub fn get_timestamp(&self) -> u64[src]

pub fn clear_timestamp(&mut self)[src]

pub fn set_timestamp(&mut self, v: u64)[src]

pub fn get_key(&self) -> u64[src]

pub fn clear_key(&mut self)[src]

pub fn set_key(&mut self, v: u64)[src]

pub fn get_data(&self) -> &[u8][src]

pub fn clear_data(&mut self)[src]

pub fn set_data(&mut self, v: Vec<u8>)[src]

pub fn mut_data(&mut self) -> &mut Vec<u8>[src]

pub fn take_data(&mut self) -> Vec<u8>[src]

pub fn get_task_id(&self) -> &str[src]

pub fn clear_task_id(&mut self)[src]

pub fn set_task_id(&mut self, v: String)[src]

pub fn mut_task_id(&mut self) -> &mut String[src]

pub fn take_task_id(&mut self) -> String[src]

Trait Implementations

impl Debug for KeyedElement[src]

impl Clone for KeyedElement[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl ProtobufValue for KeyedElement[src]

fn as_any(&self) -> &(dyn Any + 'static)

Convert to Any

fn is_non_zero(&self) -> bool

Is value non-zero?

fn as_ref_copy(&self) -> ProtobufValueRef<'static>

Return ProtobufValueRef if self is Copy. Read more

impl Clear for KeyedElement[src]

impl Message for KeyedElement[src]

fn write_to(&self, os: &mut CodedOutputStream) -> Result<(), ProtobufError>

Write the message to the stream. Read more

fn write_length_delimited_to(
    &self,
    os: &mut CodedOutputStream
) -> Result<(), ProtobufError>

Write the message to the stream prepending the message with message length encoded as varint. Read more

fn write_length_delimited_to_vec(
    &self,
    vec: &mut Vec<u8>
) -> Result<(), ProtobufError>

Write the message to the vec, prepend the message with message length encoded as varint. Read more

fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>

Update this message object with fields read from given stream.

fn check_initialized(&self) -> Result<(), ProtobufError>

Check if all required fields of this object are initialized.

fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>

Write the message to the writer.

fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>

Write the message to bytes vec.

fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>

Write the message to bytes vec.

fn write_length_delimited_to_writer(
    &self,
    w: &mut dyn Write
) -> Result<(), ProtobufError>

Write the message to the writer, prepend the message with message length encoded as varint. Read more

fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>

Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more

fn type_id(&self) -> TypeId

Get type id for downcasting.

impl<'a> Default for &'a KeyedElement[src]

impl Default for KeyedElement[src]

impl PartialEq<KeyedElement> for KeyedElement[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Deserialisable<T> for T[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]