pub enum SubscriptionScope<'a> {
PerWorkflow(&'a PerWorkflowSubscription, WorkflowTarget<'a>),
Filtered(&'a FilteredSubscription),
Firehose(&'a FirehoseSubscription),
}Expand description
Event subscription namespace scope decoded by a stream adapter.
Variants§
PerWorkflow(&'a PerWorkflowSubscription, WorkflowTarget<'a>)
Events for one workflow.
Filtered(&'a FilteredSubscription)
Filtered events in the caller namespace.
Firehose(&'a FirehoseSubscription)
Firehose events in the caller namespace.
Implementations§
Source§impl<'a> SubscriptionScope<'a>
impl<'a> SubscriptionScope<'a>
Sourcepub fn from_request(
request: &'a SubscriptionRequest,
workflow_target: Option<WorkflowTarget<'a>>,
) -> Result<Self, ServerError>
pub fn from_request( request: &'a SubscriptionRequest, workflow_target: Option<WorkflowTarget<'a>>, ) -> Result<Self, ServerError>
Decode the namespace scope from a subscription request after the handler has decoded any workflow identifiers required by the selected variant.
§Errors
Returns ServerError::Namespace when the request omits the subscription
variant.
Auto Trait Implementations§
impl<'a> Freeze for SubscriptionScope<'a>
impl<'a> RefUnwindSafe for SubscriptionScope<'a>
impl<'a> Send for SubscriptionScope<'a>
impl<'a> Sync for SubscriptionScope<'a>
impl<'a> Unpin for SubscriptionScope<'a>
impl<'a> UnsafeUnpin for SubscriptionScope<'a>
impl<'a> UnwindSafe for SubscriptionScope<'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
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