Struct Result<T>
Represents RPC response.
Inherited Members
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.Net.Cluster.dll
Syntax
public struct Result<T>
  Type Parameters
| Name | Description | 
|---|---|
| T | The type of RPC response.  | 
      
Constructors
| Improve this Doc View SourceResult(Int64, T)
Initializes a new result.
Declaration
public Result(long term, T value)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Int64 | term | The term provided by remote node.  | 
      
| T | value | The value returned by remote node.  | 
      
Fields
| Improve this Doc View SourceTerm
Gets term of the remote member.
Declaration
public readonly long Term
  Field Value
| Type | Description | 
|---|---|
| Int64 | 
Value
Gets RPC response.
Declaration
public readonly T Value
  Field Value
| Type | Description | 
|---|---|
| T |