Trait strymon_job::operators::RemoteTimestamp [] [src]

pub trait RemoteTimestamp: Timestamp {
    type Remote: Serialize + DeserializeOwned;
    fn to_remote(&self) -> Self::Remote;
fn from_remote(remote: Self::Remote) -> Self; }

A trait for Timely timestamps which can be serialized using Serde.

This is a workaround to Rust's orphan rules, allowing the conversion from and to a Remote type used in Strymon topics. An implementation is provided for all timestamp types owned by Timely. It must be implemented separately by users which have their own custom Timely timestamps.

Associated Types

The Remote type must implement the Serde traits, it can be Self.

Required Methods

Convert the local timestamp into a serializeable remote type.

Reconstruct the Timely timestamp from a deserialized remote type.

Implementations on Foreign Types

impl<TOuter, TInner> RemoteTimestamp for Product<TOuter, TInner> where
    TOuter: RemoteTimestamp,
    TInner: RemoteTimestamp
[src]

[src]

[src]

impl RemoteTimestamp for RootTimestamp
[src]

[src]

[src]

impl RemoteTimestamp for ()
[src]

[src]

[src]

impl RemoteTimestamp for usize
[src]

[src]

[src]

impl RemoteTimestamp for u32
[src]

[src]

[src]

impl RemoteTimestamp for u64
[src]

[src]

[src]

impl RemoteTimestamp for i32
[src]

[src]

[src]

Implementors