Type Alias PublicOplogEntry

Source
pub type PublicOplogEntry = PublicOplogEntry;

Aliased Type§

pub enum PublicOplogEntry {
Show 33 variants Create(CreateParameters), ImportedFunctionInvoked(ImportedFunctionInvokedParameters), ExportedFunctionInvoked(ExportedFunctionInvokedParameters), ExportedFunctionCompleted(ExportedFunctionCompletedParameters), Suspend(TimestampParameter), Error(ErrorParameters), NoOp(TimestampParameter), Jump(JumpParameters), Interrupted(TimestampParameter), Exited(TimestampParameter), ChangeRetryPolicy(ChangeRetryPolicyParameters), BeginAtomicRegion(TimestampParameter), EndAtomicRegion(EndRegionParameters), BeginRemoteWrite(TimestampParameter), EndRemoteWrite(EndRegionParameters), PendingWorkerInvocation(PendingWorkerInvocationParameters), PendingUpdate(PendingUpdateParameters), SuccessfulUpdate(SuccessfulUpdateParameters), FailedUpdate(FailedUpdateParameters), GrowMemory(GrowMemoryParameters), CreateResource(ResourceParameters), DropResource(ResourceParameters), DescribeResource(DescribeResourceParameters), Log(LogParameters), Restart(TimestampParameter), ActivatePlugin(ActivatePluginParameters), DeactivatePlugin(DeactivatePluginParameters), Revert(RevertParameters), CancelInvocation(CancelInvocationParameters), StartSpan(StartSpanParameters), FinishSpan(FinishSpanParameters), SetSpanAttribute(SetSpanAttributeParameters), ChangePersistenceLevel(ChangePersistenceLevelParameters),
}

Variants§

§

Create(CreateParameters)

§

ImportedFunctionInvoked(ImportedFunctionInvokedParameters)

The worker invoked a host function

§

ExportedFunctionInvoked(ExportedFunctionInvokedParameters)

The worker has been invoked

§

ExportedFunctionCompleted(ExportedFunctionCompletedParameters)

The worker has completed an invocation

§

Suspend(TimestampParameter)

Worker suspended

§

Error(ErrorParameters)

Worker failed

§

NoOp(TimestampParameter)

Marker entry added when get-oplog-index is called from the worker, to make the jumping behavior more predictable.

§

Jump(JumpParameters)

The worker needs to recover up to the given target oplog index and continue running from the source oplog index from there jump is an oplog region representing that from the end of that region we want to go back to the start and ignore all recorded operations in between.

§

Interrupted(TimestampParameter)

Indicates that the worker has been interrupted at this point. Only used to recompute the worker’s (cached) status, has no effect on execution.

§

Exited(TimestampParameter)

Indicates that the worker has been exited using WASI’s exit function.

§

ChangeRetryPolicy(ChangeRetryPolicyParameters)

Overrides the worker’s retry policy

§

BeginAtomicRegion(TimestampParameter)

Begins an atomic region. All oplog entries after BeginAtomicRegion are to be ignored during recovery except if there is a corresponding EndAtomicRegion entry.

§

EndAtomicRegion(EndRegionParameters)

Ends an atomic region. All oplog entries between the corresponding BeginAtomicRegion and this entry are to be considered during recovery, and the begin/end markers can be removed during oplog compaction.

§

BeginRemoteWrite(TimestampParameter)

Begins a remote write operation. Only used when idempotence mode is off. In this case each remote write must be surrounded by a BeginRemoteWrite and EndRemoteWrite log pair and unfinished remote writes cannot be recovered.

§

EndRemoteWrite(EndRegionParameters)

Marks the end of a remote write operation. Only used when idempotence mode is off.

§

PendingWorkerInvocation(PendingWorkerInvocationParameters)

An invocation request arrived while the worker was busy

§

PendingUpdate(PendingUpdateParameters)

An update request arrived and will be applied as soon the worker restarts

§

SuccessfulUpdate(SuccessfulUpdateParameters)

An update was successfully applied

§

FailedUpdate(FailedUpdateParameters)

An update failed to be applied

§

GrowMemory(GrowMemoryParameters)

Increased total linear memory size

§

CreateResource(ResourceParameters)

Created a resource instance

§

DropResource(ResourceParameters)

Dropped a resource instance

§

DescribeResource(DescribeResourceParameters)

Adds additional information for a created resource instance

§

Log(LogParameters)

The worker emitted a log message

§

Restart(TimestampParameter)

Marks the point where the worker was restarted from clean initial state

§

ActivatePlugin(ActivatePluginParameters)

Activates a plugin

§

DeactivatePlugin(DeactivatePluginParameters)

Deactivates a plugin

§

Revert(RevertParameters)

Revert a worker to a previous state

§

CancelInvocation(CancelInvocationParameters)

Cancel a pending invocation

§

StartSpan(StartSpanParameters)

Start a new span in the invocation context

§

FinishSpan(FinishSpanParameters)

Finish an open span in the invocation context

§

SetSpanAttribute(SetSpanAttributeParameters)

Set an attribute on an open span in the invocation context

§

ChangePersistenceLevel(ChangePersistenceLevelParameters)

Change the current persistence level