Struct zenoh_protocol::proto::TransportMessage
source · pub struct TransportMessage {
pub body: TransportBody,
pub attachment: Option<Attachment>,
}Fields§
§body: TransportBody§attachment: Option<Attachment>Implementations§
source§impl TransportMessage
impl TransportMessage
pub fn make_scout(
what: Option<WhatAmIMatcher>,
zid_request: bool,
attachment: Option<Attachment>
) -> TransportMessage
pub fn make_hello(
zid: Option<ZenohId>,
whatami: Option<WhatAmI>,
locators: Option<Vec<Locator>>,
attachment: Option<Attachment>
) -> TransportMessage
pub fn make_init_syn(
version: u8,
whatami: WhatAmI,
zid: ZenohId,
sn_resolution: ZInt,
is_qos: bool,
attachment: Option<Attachment>
) -> TransportMessage
pub fn make_init_ack(
whatami: WhatAmI,
zid: ZenohId,
sn_resolution: Option<ZInt>,
is_qos: bool,
cookie: ZSlice,
attachment: Option<Attachment>
) -> TransportMessage
pub fn make_open_syn(
lease: Duration,
initial_sn: ZInt,
cookie: ZSlice,
attachment: Option<Attachment>
) -> TransportMessage
pub fn make_open_ack(
lease: Duration,
initial_sn: ZInt,
attachment: Option<Attachment>
) -> TransportMessage
pub fn make_join(
version: u8,
whatami: WhatAmI,
zid: ZenohId,
lease: Duration,
sn_resolution: ZInt,
next_sns: ConduitSnList,
attachment: Option<Attachment>
) -> TransportMessage
pub fn make_close(
zid: Option<ZenohId>,
reason: u8,
link_only: bool,
attachment: Option<Attachment>
) -> TransportMessage
pub fn make_sync(
reliability: Reliability,
sn: ZInt,
count: Option<ZInt>,
attachment: Option<Attachment>
) -> TransportMessage
pub fn make_ack_nack(
sn: ZInt,
mask: Option<ZInt>,
attachment: Option<Attachment>
) -> TransportMessage
pub fn make_keep_alive(
zid: Option<ZenohId>,
attachment: Option<Attachment>
) -> TransportMessage
pub fn make_ping(hash: ZInt, attachment: Option<Attachment>) -> TransportMessage
pub fn make_pong(hash: ZInt, attachment: Option<Attachment>) -> TransportMessage
pub fn make_frame(
channel: Channel,
sn: ZInt,
payload: FramePayload,
attachment: Option<Attachment>
) -> TransportMessage
Trait Implementations§
source§impl Clone for TransportMessage
impl Clone for TransportMessage
source§fn clone(&self) -> TransportMessage
fn clone(&self) -> TransportMessage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more