Table of Contents

Struct P2PSendResult

Namespace
DotCompute.Abstractions.Messaging
Assembly
DotCompute.Abstractions.dll

Result of a P2P send operation.

public readonly struct P2PSendResult
Inherited Members

Properties

ErrorMessage

Gets the error message if the send failed.

public string? ErrorMessage { get; init; }

Property Value

string

IsSuccess

Gets a value indicating whether the send was successful.

public bool IsSuccess { get; init; }

Property Value

bool

LatencyMicroseconds

Gets the transfer latency in microseconds.

public double LatencyMicroseconds { get; init; }

Property Value

double

TransferMode

Gets the transfer mode used.

public P2PTransferMode TransferMode { get; init; }

Property Value

P2PTransferMode

Methods

Failure(string)

Creates a failed result.

public static P2PSendResult Failure(string errorMessage)

Parameters

errorMessage string

Returns

P2PSendResult

Success(double, P2PTransferMode)

Creates a successful result.

public static P2PSendResult Success(double latencyUs, P2PTransferMode mode)

Parameters

latencyUs double
mode P2PTransferMode

Returns

P2PSendResult