SwiftstructNetwork

struct Network.Framer

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 19

  1. funcstatic makeIncomingMessage<A>(content: A1?, context: Network.NWConnection.ContentContext?, isComplete: Bool) throws -> (content: A1, metadata: Network.Framer<A>.Metadata)
  2. funcstatic map((content: Foundation.Data, metadata: Network.Framer<A>.Metadata)) throws -> (content: Foundation.Data, metadata: Network.Framer<A>.Metadata)
  3. funcstatic mapLegacy((content: Foundation.Data, metadata: Network.Framer<A>.Metadata)) throws -> (Foundation.Data, Network.Framer<A>.Metadata)
  4. funcstatic receive<A where A1: Network.ConnectionProtocol>(connection: A1) async throws -> (content: Foundation.Data, metadata: Network.Framer<A>.Metadata)
  5. funcstatic send<A where A1: Network.ConnectionProtocol>(connection: A1, content: Foundation.Data, metadata: Network.Framer<A>.Metadata) async throws -> ()
  6. fieldlet belowProtocol: Network.NetworkProtocolOptions+0x8
  7. fieldvar options: Network.NWProtocolFramer.Options+0x0
  8. funcconfigure(parameters: OS_nw_parameters) -> ()
  9. funcconfigureNestedStack(parameters: OS_nw_parameters) -> ()
  10. funcreconfigureNestedStack(connection: OS_nw_connection) -> ()
  11. initinit<A where A1: Network.StreamProtocol>(using: A.Type, _: () -> A1) -> Network.Framer<A>
  12. initinit<A where A1: Network.MessageProtocol>(using: A.Type, _: () -> A1) -> Network.Framer<A>
  13. initinit<A where A1: Network.StreamProtocol>(() -> A1) -> Network.Framer<A>
  14. initinit<A where A1: Network.MessageProtocol>(() -> A1) -> Network.Framer<A>
  15. typealiastypealias BelowProtocol = Network.NetworkProtocolOptions
  16. typealiastypealias ContentType = Foundation.Data
  17. typealiastypealias LegacyMessage = (Foundation.Data, Network.Framer<A>.Metadata)
  18. typealiastypealias Metadata = Network.Framer<A>.Metadata
  19. typealiastypealias ProtocolStorage = Network.DefaultProtocolStorage
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)
}