pub struct StaticWorkflowNamespaces { /* private fields */ }Expand description
Static workflow→namespace fixture for adapter-boundary tests and alternate wiring that must authorize without an engine handle.
Implementations§
Source§impl StaticWorkflowNamespaces
impl StaticWorkflowNamespaces
Sourcepub fn record(
&self,
workflow_id: WorkflowId,
namespace: &str,
) -> Result<(), ServerError>
pub fn record( &self, workflow_id: WorkflowId, namespace: &str, ) -> Result<(), ServerError>
Record that a workflow is owned by a namespace, with no recorded
workflow type (the fixture equivalent of a history without a
WorkflowStarted event).
§Errors
Returns ServerError::LockPoisoned if the fixture lock was poisoned.
Sourcepub fn record_with_type(
&self,
workflow_id: WorkflowId,
namespace: &str,
workflow_type: &str,
) -> Result<(), ServerError>
pub fn record_with_type( &self, workflow_id: WorkflowId, namespace: &str, workflow_type: &str, ) -> Result<(), ServerError>
Record that a workflow is owned by a namespace and carries a recorded workflow type.
§Errors
Returns ServerError::LockPoisoned if the fixture lock was poisoned.
Trait Implementations§
Source§impl Clone for StaticWorkflowNamespaces
impl Clone for StaticWorkflowNamespaces
Source§fn clone(&self) -> StaticWorkflowNamespaces
fn clone(&self) -> StaticWorkflowNamespaces
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for StaticWorkflowNamespaces
impl Default for StaticWorkflowNamespaces
Source§fn default() -> StaticWorkflowNamespaces
fn default() -> StaticWorkflowNamespaces
Returns the “default value” for a type. Read more
Source§impl WorkflowNamespaceSource for StaticWorkflowNamespaces
impl WorkflowNamespaceSource for StaticWorkflowNamespaces
Source§fn workflow_attribution<'life0, 'life1, 'async_trait>(
&'life0 self,
workflow_id: &'life1 WorkflowId,
) -> Pin<Box<dyn Future<Output = Result<Option<WorkflowAttribution>, ServerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn workflow_attribution<'life0, 'life1, 'async_trait>(
&'life0 self,
workflow_id: &'life1 WorkflowId,
) -> Pin<Box<dyn Future<Output = Result<Option<WorkflowAttribution>, ServerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for StaticWorkflowNamespaces
impl RefUnwindSafe for StaticWorkflowNamespaces
impl Send for StaticWorkflowNamespaces
impl Sync for StaticWorkflowNamespaces
impl Unpin for StaticWorkflowNamespaces
impl UnsafeUnpin for StaticWorkflowNamespaces
impl UnwindSafe for StaticWorkflowNamespaces
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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