Search Results for

    Show / Hide Table of Contents

    Struct Result<T>

    A result type frequently used inside Akka.Streams and elsewhere.

    Implements
    IEquatable<Result<T>>
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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 Source

    Result(Exception)

    Declaration
    public Result(Exception exception)
    Parameters
    Type Name Description
    Exception exception
    | Edit this page View Source

    Result(T)

    Declaration
    public Result(T value)
    Parameters
    Type Name Description
    T value

    Fields

    | Edit this page View Source

    Exception

    null when IsSuccess is true.

    Declaration
    public readonly Exception? Exception
    Field Value
    Type Description
    Exception
    | Edit this page View Source

    IsSuccess

    true if the result is successful, false otherwise.

    Declaration
    public readonly bool IsSuccess
    Field Value
    Type Description
    bool
    | Edit this page View Source

    Value

    null when IsSuccess is false.

    Declaration
    public readonly T? Value
    Field Value
    Type Description
    T

    Methods

    | Edit this page View Source

    ToString()

    Returns the fully qualified type name of this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    The fully qualified type name.

    Overrides
    ValueType.ToString()

    Implements

    IEquatable<T>

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET