pub enum ActorEvent {
Show 14 variants
Action {
name: String,
args: Vec<u8>,
conn: Option<ConnHandle>,
scheduled_fire: Option<ScheduledFireInfo>,
invocation_telemetry: Option<ActorInvocationTelemetry>,
reply: Reply<Vec<u8>>,
},
HttpRequest {
request: Request,
invocation_telemetry: Option<ActorInvocationTelemetry>,
reply: Reply<ActorHttpResponse>,
},
QueueSend {
name: String,
body: Vec<u8>,
conn: ConnHandle,
request: Request,
wait: bool,
timeout_ms: Option<u64>,
invocation_telemetry: Option<ActorInvocationTelemetry>,
reply: Reply<QueueSendResult>,
},
WebSocketOpen {
conn: ConnHandle,
ws: WebSocket,
request: Option<Request>,
reply: Reply<()>,
},
ConnectionPreflight {
conn: ConnHandle,
params: Vec<u8>,
request: Option<Request>,
reply: Reply<()>,
},
ConnectionOpen {
conn: ConnHandle,
request: Option<Request>,
reply: Reply<()>,
},
ConnectionClosed {
conn: ConnHandle,
},
SubscribeRequest {
conn: ConnHandle,
event_name: String,
reply: Reply<()>,
},
SerializeState {
reason: SerializeStateReason,
reply: Reply<Vec<StateDelta>>,
},
RunGracefulCleanup {
reason: ShutdownKind,
reply: Reply<()>,
},
DisconnectConn {
conn_id: ConnId,
reply: Reply<()>,
},
WorkflowHistoryRequested {
reply: Reply<Option<Vec<u8>>>,
},
WorkflowReplayRequested {
entry_id: Option<String>,
reply: Reply<Option<Vec<u8>>>,
},
RunWake {
wake_at: i64,
wake_revision: u64,
reply: Reply<()>,
},
}Variants§
Action
Fields
§
conn: Option<ConnHandle>§
scheduled_fire: Option<ScheduledFireInfo>HttpRequest
Fields
§
invocation_telemetry: Option<ActorInvocationTelemetry>Telemetry of the invocation this request runs as. See Action.
§
reply: Reply<ActorHttpResponse>QueueSend
Fields
§
conn: ConnHandle§
invocation_telemetry: Option<ActorInvocationTelemetry>Telemetry of the invocation this send runs as. See Action.
§
reply: Reply<QueueSendResult>WebSocketOpen
ConnectionPreflight
ConnectionOpen
ConnectionClosed
Fields
§
conn: ConnHandleSubscribeRequest
SerializeState
RunGracefulCleanup
DisconnectConn
WorkflowHistoryRequested
WorkflowReplayRequested
RunWake
The persisted logical run deadline became due. Foreign runtimes ensure their run callback is active without restarting the actor runtime itself.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ActorEvent
impl !RefUnwindSafe for ActorEvent
impl !Sync for ActorEvent
impl !UnwindSafe for ActorEvent
impl Send for ActorEvent
impl Unpin for ActorEvent
impl UnsafeUnpin for ActorEvent
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<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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