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
IsSuccess
Gets a value indicating whether the send was successful.
public bool IsSuccess { get; init; }
Property Value
LatencyMicroseconds
Gets the transfer latency in microseconds.
public double LatencyMicroseconds { get; init; }
Property Value
TransferMode
Gets the transfer mode used.
public P2PTransferMode TransferMode { get; init; }
Property Value
Methods
Failure(string)
Creates a failed result.
public static P2PSendResult Failure(string errorMessage)
Parameters
errorMessagestring
Returns
Success(double, P2PTransferMode)
Creates a successful result.
public static P2PSendResult Success(double latencyUs, P2PTransferMode mode)
Parameters
latencyUsdoublemodeP2PTransferMode