#[non_exhaustive]pub enum FormatPreference {
Arrow,
Tlv,
Csv,
}Expand description
Format the publisher will emit batches in once a subscription is accepted.
Mirrors lightstream’s format options.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Arrow
Arrow IPC stream protocol, the default high-throughput choice.
Tlv
Lightstream TLV framing for opaque payloads.
Csv
Streaming CSV, intended for ad-hoc inspection rather than throughput.
Trait Implementations§
Source§impl Clone for FormatPreference
impl Clone for FormatPreference
Source§fn clone(&self) -> FormatPreference
fn clone(&self) -> FormatPreference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FormatPreference
impl Debug for FormatPreference
Source§impl Default for FormatPreference
impl Default for FormatPreference
Source§impl<'de> Deserialize<'de> for FormatPreference
impl<'de> Deserialize<'de> for FormatPreference
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for FormatPreference
impl Hash for FormatPreference
Source§impl PartialEq for FormatPreference
impl PartialEq for FormatPreference
Source§fn eq(&self, other: &FormatPreference) -> bool
fn eq(&self, other: &FormatPreference) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FormatPreference
impl Serialize for FormatPreference
impl Copy for FormatPreference
impl Eq for FormatPreference
impl StructuralPartialEq for FormatPreference
Auto Trait Implementations§
impl Freeze for FormatPreference
impl RefUnwindSafe for FormatPreference
impl Send for FormatPreference
impl Sync for FormatPreference
impl Unpin for FormatPreference
impl UnsafeUnpin for FormatPreference
impl UnwindSafe for FormatPreference
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