Struct P2PBatchSendResult
- Namespace
- DotCompute.Abstractions.Messaging
- Assembly
- DotCompute.Abstractions.dll
Result of a P2P batch send operation.
public readonly struct P2PBatchSendResult
- 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 batch send was successful.
public bool IsSuccess { get; init; }
Property Value
MessagesPerSecond
Gets the throughput in messages per second.
public double MessagesPerSecond { get; init; }
Property Value
MessagesSent
Gets the number of messages sent.
public int MessagesSent { get; init; }
Property Value
TotalLatencyMicroseconds
Gets the total transfer latency in microseconds.
public double TotalLatencyMicroseconds { get; init; }
Property Value
TransferMode
Gets the transfer mode used.
public P2PTransferMode TransferMode { get; init; }
Property Value
Methods
Failure(string, int)
Creates a failed result.
public static P2PBatchSendResult Failure(string errorMessage, int messagesSent = 0)
Parameters
Returns
Success(int, double, P2PTransferMode)
Creates a successful result.
public static P2PBatchSendResult Success(int count, double latencyUs, P2PTransferMode mode)
Parameters
countintlatencyUsdoublemodeP2PTransferMode