pub struct SubscribedFrame {
pub protocol_version: u8,
pub subscription_id: String,
pub op: &'static str,
pub query: SubscriptionQuery,
pub mode: Mode,
pub sort: Option<SortConfig>,
pub replay_window: Option<ReplayWindow>,
pub whole_entities: bool,
}Fields§
§protocol_version: u8§subscription_id: String§op: &'static str§query: SubscriptionQuery§mode: Mode§sort: Option<SortConfig>§replay_window: Option<ReplayWindow>Offsets this view can replay, for append views backed by the event journal. Absent when the view has no retained tape.
whole_entities: boolThe server sends a key whole (upsert or a snapshot row) before any
patch for it, so a client may drop a patch for a key it does not
hold. Older servers omit it, and clients then keep such a patch. Tape
records (frames with an offset) are events and not covered.
Implementations§
Source§impl SubscribedFrame
impl SubscribedFrame
pub fn new( subscription_id: String, query: SubscriptionQuery, mode: Mode, sort: Option<SortConfig>, ) -> Self
Sourcepub fn with_replay_window(self, window: ReplayWindow) -> Self
pub fn with_replay_window(self, window: ReplayWindow) -> Self
Advertise the offsets a resuming consumer can still ask for.
Trait Implementations§
Source§impl Clone for SubscribedFrame
impl Clone for SubscribedFrame
Source§impl Debug for SubscribedFrame
impl Debug for SubscribedFrame
Source§impl Deserialize<'static> for SubscribedFrame
impl Deserialize<'static> for SubscribedFrame
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SubscribedFrame
impl RefUnwindSafe for SubscribedFrame
impl Send for SubscribedFrame
impl Sync for SubscribedFrame
impl Unpin for SubscribedFrame
impl UnsafeUnpin for SubscribedFrame
impl UnwindSafe for SubscribedFrame
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