pub enum ReceivedEventData<'a> {
Buffer(&'a [u8]),
KeyValueBuffer {
key: &'a [u8],
value: &'a [u8],
},
PlainText(&'a str),
JsonText(&'a str),
}
Expand description
Represents a sample data that the user will receive
Variants§
Buffer(&'a [u8])
Raw buffer. will be used on simple value sampling pairing with ExportFormatType::RawEvent
KeyValueBuffer
KeyValue Buffer. will be used on key-value sampling pairing with ExportFormatType::RawEvent
PlainText(&'a str)
JsonText(&'a str)
Implementations§
Source§impl<'a> ReceivedEventData<'a>
impl<'a> ReceivedEventData<'a>
Sourcepub fn trivally_to_plain_bytes(&self) -> &'a [u8] ⓘ
pub fn trivally_to_plain_bytes(&self) -> &'a [u8] ⓘ
Simply get a &u8 from this received data, which is the same as the one that the C++ version callback receives
Trait Implementations§
Source§impl<'a> Debug for ReceivedEventData<'a>
impl<'a> Debug for ReceivedEventData<'a>
Auto Trait Implementations§
impl<'a> Freeze for ReceivedEventData<'a>
impl<'a> RefUnwindSafe for ReceivedEventData<'a>
impl<'a> Send for ReceivedEventData<'a>
impl<'a> Sync for ReceivedEventData<'a>
impl<'a> Unpin for ReceivedEventData<'a>
impl<'a> UnwindSafe for ReceivedEventData<'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