mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-20 03:24:33 +08:00
26 lines
769 B
C#
26 lines
769 B
C#
// Licensed to the .NET Foundation under one or more agreements.
|
|
// The .NET Foundation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
namespace MQTTnet.Formatter
|
|
{
|
|
public struct ReadFixedHeaderResult
|
|
{
|
|
public static ReadFixedHeaderResult Canceled { get; } = new ReadFixedHeaderResult
|
|
{
|
|
IsCanceled = true
|
|
};
|
|
|
|
public static ReadFixedHeaderResult ConnectionClosed { get; } = new ReadFixedHeaderResult
|
|
{
|
|
IsConnectionClosed = true
|
|
};
|
|
|
|
public bool IsCanceled { get; set; }
|
|
|
|
public bool IsConnectionClosed { get; set; }
|
|
|
|
public MqttFixedHeader FixedHeader { get; set; }
|
|
}
|
|
}
|