Constructors

  • Creates a new Publisher on a session Note: this should never be called directly by the user. please use declare_publisher on a session.

    Parameters

    • remote_publisher: RemotePublisher

      A Session to create the publisher on

    • key_expr: KeyExpr

      A Key Expression

    • congestion_control: CongestionControl

      Congestion control

    • priority: Priority

      Priority for Zenoh Data

    • reliability: Reliability

      Reliability for publishing data

    • encoding: Encoding

    Returns Publisher

    a new instance of a publisher

Methods

  • Puts a payload on the publisher associated with this class instance

    Parameters

    • payload: IntoZBytes

      user payload, type that can be converted into a ZBytes

    • Optionalencoding: IntoEncoding

      Encoding parameter for Zenoh data

    • Optionalattachment: IntoZBytes

      optional extra data to send with Payload

    Returns void

    void