---
title: InvocationEncoder
framework: distributed
role: symbol
role_heading: Associated Type
path: distributed/distributedactorsystem/invocationencoder
---

# InvocationEncoder

Type of DistributedTargetInvocationEncoder that should be used when the Swift runtime needs to encode a distributed target call into an encoder, before passing it off to remoteCall(...).

## Declaration

```swift
associatedtype InvocationEncoder : DistributedTargetInvocationEncoder where Self.InvocationEncoder.SerializationRequirement == Self.ResultHandler.SerializationRequirement
```
