Struct zenoh_protocol::proto::SessionMessage[][src]

pub struct SessionMessage { /* fields omitted */ }

Implementations

impl SessionMessage[src]

pub fn make_scout(
    what: Option<WhatAmI>,
    pid_request: bool,
    attachment: Option<Attachment>
) -> SessionMessage
[src]

pub fn make_hello(
    pid: Option<PeerId>,
    whatami: Option<WhatAmI>,
    locators: Option<Vec<Locator>>,
    attachment: Option<Attachment>
) -> SessionMessage
[src]

pub fn make_init_syn(
    version: u8,
    whatami: WhatAmI,
    pid: PeerId,
    sn_resolution: Option<ZInt>,
    attachment: Option<Attachment>
) -> SessionMessage
[src]

pub fn make_init_ack(
    whatami: WhatAmI,
    pid: PeerId,
    sn_resolution: Option<ZInt>,
    cookie: RBuf,
    attachment: Option<Attachment>
) -> SessionMessage
[src]

pub fn make_open_syn(
    lease: ZInt,
    initial_sn: ZInt,
    cookie: RBuf,
    attachment: Option<Attachment>
) -> SessionMessage
[src]

pub fn make_open_ack(
    lease: ZInt,
    initial_sn: ZInt,
    attachment: Option<Attachment>
) -> SessionMessage
[src]

pub fn make_close(
    pid: Option<PeerId>,
    reason: u8,
    link_only: bool,
    attachment: Option<Attachment>
) -> SessionMessage
[src]

pub fn make_sync(
    ch: Channel,
    sn: ZInt,
    count: Option<ZInt>,
    attachment: Option<Attachment>
) -> SessionMessage
[src]

pub fn make_ack_nack(
    sn: ZInt,
    mask: Option<ZInt>,
    attachment: Option<Attachment>
) -> SessionMessage
[src]

pub fn make_keep_alive(
    pid: Option<PeerId>,
    attachment: Option<Attachment>
) -> SessionMessage
[src]

pub fn make_ping(hash: ZInt, attachment: Option<Attachment>) -> SessionMessage[src]

pub fn make_pong(hash: ZInt, attachment: Option<Attachment>) -> SessionMessage[src]

pub fn make_frame(
    ch: Channel,
    sn: ZInt,
    payload: FramePayload,
    attachment: Option<Attachment>
) -> SessionMessage
[src]

pub fn make_frame_header(ch: Channel, is_fragment: Option<bool>) -> u8[src]

pub fn get_body(&self) -> &SessionBody[src]

pub fn get_attachment(&self) -> &Option<Attachment>[src]

pub fn get_attachment_mut(&mut self) -> &mut Option<Attachment>[src]

Trait Implementations

impl Clone for SessionMessage[src]

impl Debug for SessionMessage[src]

impl PartialEq<SessionMessage> for SessionMessage[src]

impl StructuralPartialEq for SessionMessage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,