[][src]Enum zenoh_protocol::proto::Declaration

pub enum Declaration {
    Resource {
        rid: ZInt,
        key: ResKey,
    },
    ForgetResource {
        rid: ZInt,
    },
    Publisher {
        key: ResKey,
    },
    ForgetPublisher {
        key: ResKey,
    },
    Subscriber {
        key: ResKey,
        info: SubInfo,
    },
    ForgetSubscriber {
        key: ResKey,
    },
    Queryable {
        key: ResKey,
    },
    ForgetQueryable {
        key: ResKey,
    },
}

Variants

Resource

7 6 5 4 3 2 1 0 +-+-+-+-+-+-+-+-+ |K|X|X| RESOURCE| +---------------+ ~ RID ~ +---------------+ ~ ResKey ~ if K==1 then only numerical id +---------------+

@Olivier, the idea would be to be able to declare a resource using an ID to avoid sending the prefix. If we do this however, we open the door to receiving declaration that may try to redefine an Id... Which BTW may not be so bad, as we could use this instead as the rebind. Thoughts?

Fields of Resource

rid: ZIntkey: ResKey
ForgetResource

7 6 5 4 3 2 1 0 +-+-+-+-+-+-+-+-+ |X|X|X| F_RES | +---------------+ ~ RID ~ +---------------+

Fields of ForgetResource

rid: ZInt
Publisher

7 6 5 4 3 2 1 0 +-+-+-+-+-+-+-+-+ |K|X|X| PUB | +---------------+ ~ ResKey ~ if K==1 then only numerical id +---------------+

Fields of Publisher

key: ResKey
ForgetPublisher

7 6 5 4 3 2 1 0 +-+-+-+-+-+-+-+-+ |K|X|X| F_PUB | +---------------+ ~ ResKey ~ if K==1 then only numerical id +---------------+

Fields of ForgetPublisher

key: ResKey
Subscriber

7 6 5 4 3 2 1 0 +-+-+-+-+-+-+-+-+ |K|S|R| SUB | R for Reliable +---------------+ ~ ResKey ~ if K==1 then only numerical id +---------------+ |P| SubMode | if S==1. Otherwise: SubMode=Push +---------------+ ~ Period ~ if P==1. Otherwise: None +---------------+

Fields of Subscriber

key: ResKeyinfo: SubInfo
ForgetSubscriber

7 6 5 4 3 2 1 0 +-+-+-+-+-+-+-+-+ |K|X|X| F_SUB | +---------------+ ~ ResKey ~ if K==1 then only numerical id +---------------+

Fields of ForgetSubscriber

key: ResKey
Queryable

7 6 5 4 3 2 1 0 +-+-+-+-+-+-+-+-+ |K|X|X| QABLE | +---------------+ ~ ResKey ~ if K==1 then only numerical id +---------------+

Fields of Queryable

key: ResKey
ForgetQueryable

7 6 5 4 3 2 1 0 +-+-+-+-+-+-+-+-+ |K|X|X| F_QABLE | +---------------+ ~ ResKey ~ if K==1 then only numerical id +---------------+

Fields of ForgetQueryable

key: ResKey

Trait Implementations

impl Clone for Declaration[src]

impl Debug for Declaration[src]

impl PartialEq<Declaration> for Declaration[src]

impl StructuralPartialEq for Declaration[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>,