Welcome

open class Welcome : WelcomeProtocol, @unchecked Sendable
extension Welcome: CustomStringConvertible
extension Welcome: Equatable
extension Welcome: Hashable

A TLS-serialized Welcome message.

This structure is defined in RFC 9420: https://www.rfc-editor.org/rfc/rfc9420.html#joining-via-welcome-message.

  • Construct a new instance, transferring data from the client layer to Rust.

    Declaration

    Swift

    public convenience init(bytes: Data)
  • Get the raw bytes from this type, transferring data from Rust to the client layer.

    This does not consume the newtype, instead copying the internal data across the FFI boundary.

    Declaration

    Swift

    open func copyBytes() -> Data
  • Declaration

    Swift

    open var description: String { get }
  • Declaration

    Swift

    public static func == (self: Welcome, other: Welcome) -> Bool
  • Declaration

    Swift

    open func hash(into hasher: inout Hasher)