pub struct EmbeddedWorkflowTransport { /* private fields */ }Expand description
Transport backed by an in-process aion::Engine.
Implementations§
Trait Implementations§
Source§impl WorkflowTransport for EmbeddedWorkflowTransport
impl WorkflowTransport for EmbeddedWorkflowTransport
Source§fn start_workflow<'life0, 'async_trait>(
&'life0 self,
request: ProtoStartWorkflowRequest,
) -> Pin<Box<dyn Future<Output = Result<ProtoStartWorkflowResponse, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start_workflow<'life0, 'async_trait>(
&'life0 self,
request: ProtoStartWorkflowRequest,
) -> Pin<Box<dyn Future<Output = Result<ProtoStartWorkflowResponse, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sends
StartWorkflow over the transport.Source§fn signal<'life0, 'async_trait>(
&'life0 self,
request: ProtoSignalRequest,
) -> Pin<Box<dyn Future<Output = Result<ProtoSignalResponse, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn signal<'life0, 'async_trait>(
&'life0 self,
request: ProtoSignalRequest,
) -> Pin<Box<dyn Future<Output = Result<ProtoSignalResponse, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sends
Signal over the transport.Source§fn query<'life0, 'async_trait>(
&'life0 self,
request: ProtoQueryRequest,
) -> Pin<Box<dyn Future<Output = Result<ProtoQueryResponse, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query<'life0, 'async_trait>(
&'life0 self,
request: ProtoQueryRequest,
) -> Pin<Box<dyn Future<Output = Result<ProtoQueryResponse, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sends
Query over the transport.Source§fn cancel<'life0, 'async_trait>(
&'life0 self,
request: ProtoCancelRequest,
) -> Pin<Box<dyn Future<Output = Result<ProtoCancelResponse, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn cancel<'life0, 'async_trait>(
&'life0 self,
request: ProtoCancelRequest,
) -> Pin<Box<dyn Future<Output = Result<ProtoCancelResponse, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sends
Cancel over the transport.Source§fn reopen<'life0, 'async_trait>(
&'life0 self,
request: ProtoReopenRequest,
) -> Pin<Box<dyn Future<Output = Result<ProtoReopenResponse, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn reopen<'life0, 'async_trait>(
&'life0 self,
request: ProtoReopenRequest,
) -> Pin<Box<dyn Future<Output = Result<ProtoReopenResponse, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sends
Reopen over the transport.Source§fn pause<'life0, 'async_trait>(
&'life0 self,
request: ProtoPauseRequest,
) -> Pin<Box<dyn Future<Output = Result<ProtoPauseResponse, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn pause<'life0, 'async_trait>(
&'life0 self,
request: ProtoPauseRequest,
) -> Pin<Box<dyn Future<Output = Result<ProtoPauseResponse, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sends
Pause over the transport (#204).Source§fn resume<'life0, 'async_trait>(
&'life0 self,
request: ProtoResumeRequest,
) -> Pin<Box<dyn Future<Output = Result<ProtoResumeResponse, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn resume<'life0, 'async_trait>(
&'life0 self,
request: ProtoResumeRequest,
) -> Pin<Box<dyn Future<Output = Result<ProtoResumeResponse, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sends
Resume over the transport (#204).Source§fn list_workflows<'life0, 'async_trait>(
&'life0 self,
request: ProtoListWorkflowsRequest,
) -> Pin<Box<dyn Future<Output = Result<ProtoListWorkflowsResponse, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_workflows<'life0, 'async_trait>(
&'life0 self,
request: ProtoListWorkflowsRequest,
) -> Pin<Box<dyn Future<Output = Result<ProtoListWorkflowsResponse, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sends
ListWorkflows over the transport.Source§fn describe_workflow<'life0, 'async_trait>(
&'life0 self,
request: ProtoDescribeWorkflowRequest,
) -> Pin<Box<dyn Future<Output = Result<ProtoDescribeWorkflowResponse, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn describe_workflow<'life0, 'async_trait>(
&'life0 self,
request: ProtoDescribeWorkflowRequest,
) -> Pin<Box<dyn Future<Output = Result<ProtoDescribeWorkflowResponse, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sends
DescribeWorkflow over the transport.Source§fn subscribe<'life0, 'async_trait>(
&'life0 self,
request: SubscriptionRequest,
resume_from_sequence: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<SubscriptionAttempt, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn subscribe<'life0, 'async_trait>(
&'life0 self,
request: SubscriptionRequest,
resume_from_sequence: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<SubscriptionAttempt, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Opens an event subscription attempt. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for EmbeddedWorkflowTransport
impl !UnwindSafe for EmbeddedWorkflowTransport
impl Freeze for EmbeddedWorkflowTransport
impl Send for EmbeddedWorkflowTransport
impl Sync for EmbeddedWorkflowTransport
impl Unpin for EmbeddedWorkflowTransport
impl UnsafeUnpin for EmbeddedWorkflowTransport
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