Struct temporal_sdk_core::ServerGateway [−][src]
pub struct ServerGateway { pub service: WorkflowServiceClient<Channel>, pub opts: ServerGatewayOptions, }
Contains an instance of a client for interacting with the temporal server
Fields
service: WorkflowServiceClient<Channel>
Client for interacting with workflow service
opts: ServerGatewayOptions
Options gateway was initialized with
Trait Implementations
impl ServerGatewayApis for ServerGateway
[src]
fn start_workflow<'life0, 'async_trait>(
&'life0 self,
namespace: String,
task_queue: String,
workflow_id: String,
workflow_type: String
) -> Pin<Box<dyn Future<Output = Result<StartWorkflowExecutionResponse, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
namespace: String,
task_queue: String,
workflow_id: String,
workflow_type: String
) -> Pin<Box<dyn Future<Output = Result<StartWorkflowExecutionResponse, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn poll_workflow_task<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<PollWorkflowTaskQueueResponse, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<PollWorkflowTaskQueueResponse, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn poll_activity_task<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<PollActivityTaskQueueResponse, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<PollActivityTaskQueueResponse, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn complete_workflow_task<'life0, 'async_trait>(
&'life0 self,
task_token: Vec<u8>,
commands: Vec<Command>
) -> Pin<Box<dyn Future<Output = Result<RespondWorkflowTaskCompletedResponse, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
task_token: Vec<u8>,
commands: Vec<Command>
) -> Pin<Box<dyn Future<Output = Result<RespondWorkflowTaskCompletedResponse, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn complete_activity_task<'life0, 'async_trait>(
&'life0 self,
task_token: Vec<u8>,
result: Option<Payloads>
) -> Pin<Box<dyn Future<Output = Result<RespondActivityTaskCompletedResponse, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
task_token: Vec<u8>,
result: Option<Payloads>
) -> Pin<Box<dyn Future<Output = Result<RespondActivityTaskCompletedResponse, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn record_activity_heartbeat<'life0, 'async_trait>(
&'life0 self,
task_token: Vec<u8>,
details: Option<Payloads>
) -> Pin<Box<dyn Future<Output = Result<RecordActivityTaskHeartbeatResponse, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
task_token: Vec<u8>,
details: Option<Payloads>
) -> Pin<Box<dyn Future<Output = Result<RecordActivityTaskHeartbeatResponse, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn cancel_activity_task<'life0, 'async_trait>(
&'life0 self,
task_token: Vec<u8>,
details: Option<Payloads>
) -> Pin<Box<dyn Future<Output = Result<RespondActivityTaskCanceledResponse, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
task_token: Vec<u8>,
details: Option<Payloads>
) -> Pin<Box<dyn Future<Output = Result<RespondActivityTaskCanceledResponse, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn fail_activity_task<'life0, 'async_trait>(
&'life0 self,
task_token: Vec<u8>,
failure: Option<Failure>
) -> Pin<Box<dyn Future<Output = Result<RespondActivityTaskFailedResponse, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
task_token: Vec<u8>,
failure: Option<Failure>
) -> Pin<Box<dyn Future<Output = Result<RespondActivityTaskFailedResponse, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn fail_workflow_task<'life0, 'async_trait>(
&'life0 self,
task_token: Vec<u8>,
cause: WorkflowTaskFailedCause,
failure: Option<Failure>
) -> Pin<Box<dyn Future<Output = Result<RespondWorkflowTaskFailedResponse, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
task_token: Vec<u8>,
cause: WorkflowTaskFailedCause,
failure: Option<Failure>
) -> Pin<Box<dyn Future<Output = Result<RespondWorkflowTaskFailedResponse, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn signal_workflow_execution<'life0, 'async_trait>(
&'life0 self,
workflow_id: String,
run_id: String,
signal_name: String,
payloads: Option<Payloads>
) -> Pin<Box<dyn Future<Output = Result<SignalWorkflowExecutionResponse, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
workflow_id: String,
run_id: String,
signal_name: String,
payloads: Option<Payloads>
) -> Pin<Box<dyn Future<Output = Result<SignalWorkflowExecutionResponse, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for ServerGateway
impl Send for ServerGateway
impl Sync for ServerGateway
impl Unpin for ServerGateway
impl !UnwindSafe for ServerGateway
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> FutureExt for T
[src]
pub fn with_context(self, otel_cx: Context) -> WithContext<Self>
[src]
pub fn with_current_context(self) -> WithContext<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,