pub struct EventSubscription {
pub namespace: String,
pub filter: EventFilter,
pub selector: SubscriptionSelector,
pub workflow_target: Option<WorkflowId>,
pub replay: Vec<Event>,
pub events: BoxStream<'static, Result<Event, EventStreamLagged>>,
}Expand description
Authorized subscription returned by the adapter boundary.
Fields§
§namespace: StringNamespace authorized by the guard.
filter: EventFilterEngine-side filter used for the subscription.
selector: SubscriptionSelectorWorkflow-type/status selectors applied server-side before encoding.
workflow_target: Option<WorkflowId>Per-workflow target, when the subscription is tied to one workflow.
replay: Vec<Event>Recorded history slice replayed before the live tail. Empty unless the request carried a per-workflow resume cursor.
events: BoxStream<'static, Result<Event, EventStreamLagged>>Live event stream obtained from Engine::subscribe after authorization.
When a resume cursor is present this tail is already deduplicated
against replay (seq > snapshot head).
Auto Trait Implementations§
impl !RefUnwindSafe for EventSubscription
impl !Sync for EventSubscription
impl !UnwindSafe for EventSubscription
impl Freeze for EventSubscription
impl Send for EventSubscription
impl Unpin for EventSubscription
impl UnsafeUnpin for EventSubscription
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request