SwiftstructNetwork
struct Network.Framer
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolNetwork.MessageProtocol
- protocolNetwork.NetworkProtocolOptions
- protocolNetwork.OneToOneProtocol
Members 19
- func
static makeIncomingMessage<A>(content: A1?, context: Network.NWConnection.ContentContext?, isComplete: Bool) throws -> (content: A1, metadata: Network.Framer<A>.Metadata) - func
static map((content: Foundation.Data, metadata: Network.Framer<A>.Metadata)) throws -> (content: Foundation.Data, metadata: Network.Framer<A>.Metadata) - func
static mapLegacy((content: Foundation.Data, metadata: Network.Framer<A>.Metadata)) throws -> (Foundation.Data, Network.Framer<A>.Metadata) - func
static receive<A where A1: Network.ConnectionProtocol>(connection: A1) async throws -> (content: Foundation.Data, metadata: Network.Framer<A>.Metadata) - func
static send<A where A1: Network.ConnectionProtocol>(connection: A1, content: Foundation.Data, metadata: Network.Framer<A>.Metadata) async throws -> () - field
let belowProtocol: Network.NetworkProtocolOptions+0x8 - field
var options: Network.NWProtocolFramer.Options+0x0 - func
configure(parameters: OS_nw_parameters) -> () - func
configureNestedStack(parameters: OS_nw_parameters) -> () - func
reconfigureNestedStack(connection: OS_nw_connection) -> () - init
init<A where A1: Network.StreamProtocol>(using: A.Type, _: () -> A1) -> Network.Framer<A> - init
init<A where A1: Network.MessageProtocol>(using: A.Type, _: () -> A1) -> Network.Framer<A> - init
init<A where A1: Network.StreamProtocol>(() -> A1) -> Network.Framer<A> - init
init<A where A1: Network.MessageProtocol>(() -> A1) -> Network.Framer<A> - typealias
typealias BelowProtocol = Network.NetworkProtocolOptions - typealias
typealias ContentType = Foundation.Data - typealias
typealias LegacyMessage = (Foundation.Data, Network.Framer<A>.Metadata) - typealias
typealias Metadata = Network.Framer<A>.Metadata - typealias
typealias ProtocolStorage = Network.DefaultProtocolStorage
Header
struct Framer<A> where A: Network.FramerProtocol { struct Metadata { let framer: Network.NWProtocolFramer.Message let isComplete: Swift.Bool let lastMessage: Swift.Bool let other: [Network.NWProtocolMetadata] init(framer: Network.NWProtocolFramer.Message, isComplete: Swift.Bool, lastMessage: Swift.Bool, other: [Network.NWProtocolMetadata]?) func toContentContext() -> Network.NWConnection.ContentContext static func fromContentContext(context: Network.NWConnection.ContentContext?, isComplete: Swift.Bool) -> Network.Framer<A>.Metadata? } var options: Network.NWProtocolFramer.Options let belowProtocol: any Network.NetworkProtocolOptions init<A1>(using: A.Type, _: () -> A1) where A1: Network.StreamProtocol init<A1>(using: A.Type, _: () -> A1) where A1: Network.MessageProtocol init<A1>(_: () -> A1) where A1: Network.StreamProtocol init<A1>(_: () -> A1) where A1: Network.MessageProtocol func configureNestedStack(parameters: any __C.OS_nw_parameters) func reconfigureNestedStack(connection: any __C.OS_nw_connection) func configure(parameters: any __C.OS_nw_parameters) static func makeIncomingMessage<A1>(content: A1?, context: Network.NWConnection.ContentContext?, isComplete: Swift.Bool) throws -> (content: A1, metadata: Network.Framer<A>.Metadata) static func map(_: (content: Foundation.Data, metadata: Network.Framer<A>.Metadata)) throws -> (content: Foundation.Data, metadata: Network.Framer<A>.Metadata) static func send<A1>(connection: A1, content: Foundation.Data, metadata: Network.Framer<A>.Metadata) async throws where A1: Network.ConnectionProtocol static func receive<A1>(connection: A1) async throws -> (content: Foundation.Data, metadata: Network.Framer<A>.Metadata) where A1: Network.ConnectionProtocol static func mapLegacy(_: (content: Foundation.Data, metadata: Network.Framer<A>.Metadata)) throws -> (Foundation.Data, Network.Framer<A>.Metadata) }