-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from Vinz1911/develop
Develop
- Loading branch information
Showing
13 changed files
with
156 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// | ||
// FKConnectionState.swift | ||
// FusionKit | ||
// | ||
// Created by Vinzenz Weist on 09.06.21. | ||
// Copyright © 2021 Vinzenz Weist. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
/// The `FKConnectionBytes` for input and output bytes | ||
public struct FKConnectionBytes: FKConnectionBytesProtocol { | ||
public var input: Int? | ||
public var output: Int? | ||
} | ||
|
||
// MARK: - State Types - | ||
|
||
/// The `FKTransmitter` internal message transmitter | ||
@frozen | ||
internal enum FKTransmitter { | ||
case message(FKConnectionMessage) | ||
case bytes(FKConnectionBytes) | ||
} | ||
|
||
/// The `FKConnectionState` state handler | ||
@frozen | ||
public enum FKConnectionState { | ||
case ready | ||
case cancelled | ||
case failed(Error?) | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.