Builder API for creating total union matchers.
Builder API for creating total union matchers.
the union type that provided the possible sub cases
phantom type to ensure at least one case is provided
Builder API for creating total union matchers.
Builder API for creating total union matchers.
This is the final step, when a covered union is given.
Cannot be an AnyVal
as this would expose the final receive function.
the union type that provided the possible sub cases
the union type of all the alrady given cases
Builder API for creating total union matchers.
Builder API for creating total union matchers. This is step 1 when no sub case was given.
the union type that provided the possible sub cases
Builder API for creating total union matchers.
Builder API for creating total union matchers.
This is step 2 when the first sub case was given.
Cannot be an AnyVal
as this would expose the final receive function.
the union type that provided the possible sub cases
the type of the first sub case
Abstract class to extend from in order to get a TypedActor.
Abstract class to extend from in order to get a TypedActor. If you want to have the message type provided as a type parameter, you have to add a context bound for scala.reflect.ClassTag.
class ExampleActor extends TypeActor.Of[ExampleProtocol] { // ... }
the message type this actor is receiving
Helper to define a new become behavior for a union sub type
Creates a new typed actor from a total function, forfeiting the functionality of changing behavior.
Creates a new typed actor from a total function, forfeiting the functionality of changing behavior.
the message type
the actors behavior