Struct Result<T>
A result type frequently used inside Akka.Streams and elsewhere.
Implements
IEquatable<Result<T>>
Inherited Members
Namespace: Akka.Util
Assembly: Akka.dll
Syntax
public readonly record struct Result<T> : IEquatable<Result<T>>
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
| Edit this page View SourceResult(Exception)
Declaration
public Result(Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| Exception | exception |
Result(T)
Declaration
public Result(T value)
Parameters
| Type | Name | Description |
|---|---|---|
| T | value |
Fields
| Edit this page View SourceException
null when IsSuccess is true.
Declaration
public readonly Exception? Exception
Field Value
| Type | Description |
|---|---|
| Exception |
IsSuccess
true if the result is successful, false otherwise.
Declaration
public readonly bool IsSuccess
Field Value
| Type | Description |
|---|---|
| bool |
Value
null when IsSuccess is false.
Declaration
public readonly T? Value
Field Value
| Type | Description |
|---|---|
| T |
Methods
| Edit this page View SourceToString()
Returns the fully qualified type name of this instance.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The fully qualified type name. |
Edit this page