Modules§
Structs§
- Const
Counter - Const wrapper for
Counter
- Const
Gauge - Const wrapper for
Gauge
- Const
Histogram - Const wrapper for
Histogram
- Counter
- Envoy counter metric handle
- Downstream
Data - Downstream data reference for a Stream filter
- Gauge
- Envoy gauge metric handle
- Grpc
Call - Outbound GRPC call
- Grpc
Call Builder - Builder for
GrpcCall
. - Grpc
Call Response - Response type for
GrpcCall::callback
- Grpc
Cancel Handle - GRPC Call Handle to cancel a request
- Grpc
Stream - Outbound GRPC stream (bidirectional)
- Grpc
Stream Builder - Builder for
GrpcStream
. - Grpc
Stream Close - Response type for
GrpcStream::on_close
- Grpc
Stream Handle - GRPC stream handle to cancel, close, or send a message over a GRPC stream.
- Grpc
Stream Message - Response type for
GrpcStream::on_message
- Histogram
- Envoy histogram metric handle
- Http
Call - Outbound HTTP call
- Http
Call Builder - Builder for
HttpCall
. - Http
Call Response - Response type for
HttpCall::callback
- Metrics
Info - Queue
- Shared Queues in proxy-wasm are a FIFO MPMC queue with no message duplication. Any WASM VM can resolve a queue or register new ones in their own VM ID. Any WASM VM can dequeue data, which will globally dequeue that item. Messages are not replicated to each WASM VM. When broadcasting data to many WASM VMs, it’s advised to have a scheme where each thread can register it’s own inbound queue, then enqueue the name of said queue to the centralized source of data. That source then enqueues to each WASM VM’s queue individually.
- Request
Body - Request
Headers - Request header context
- Request
Trailers - Response
Body - Response
Headers - Response
Trailers - Shared
Data - A VM ID local atomic field. Any WASM VM in the same VM ID can read or write to any key in it’s VM ID. SharedData cannot cross VM IDs.
- Stream
Close - Context for a stream closing event
- Upstream
- A reference to an upstream cluster. In envoy this is an encoded protobuf. See
Upstream::envoy_upstream
. - Upstream
Data - Upstream data reference for a Stream filter
Enums§
- Close
Type - Context
- Filter
Data Status - Return status for body callbacks
- Filter
Headers Status - Return status for header callbacks
- Filter
Stream Status - Filter
Trailers Status - Return status for trailer callbacks
- Grpc
Call Builder Error - Error type for GrpcCallBuilder
- Grpc
Code - Copied from
tonic
crate, GRPC status codes - Grpc
Stream Builder Error - Error type for GrpcStreamBuilder
- Header
Type - Defines which section the header data belongs too
- Http
Call Builder Error - Error type for HttpCallBuilder
- Http
Type - Defines if data belongs to a request or response
- Status
- Stream
Type
Traits§
- Base
Context - Http
Body Control - Defines functions to interact with body data
- Http
Context - Context for a HTTP filter plugin.
- Http
Control - Defines control functions for http data
- Http
Header Control - Defines functions to interact with header data
- Root
Context - Stream
Context - Trait to implement stream filters (L4 filters).
- Stream
Control - Defines control functions for streams
- Stream
Data Control - Defines functions to interact with stream data
Functions§
- call_
foreign_ function - Calls a foreign function as defined by the proxy.
- instant_
now - now
- Fetches the realtime clock and stores it in a
SystemTime
- proxy_
abi_ version_ 0_ 2_ 1 - proxy_
on_ memory_ allocate - reset
- Wipes all thread local state, to be used before any initialization in case of VM reuse in native mode
- set_
log_ level - Sets the log level filter and installs a panic hook to log out panics.
- set_
root_ context_ factory - Sets root context factory. Should be called from _init. Can only be called once.
- set_
tick_ period - Set tick period. Use
Duration::ZERO
to disable ticker.