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>,
}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.
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