Struct zenoh_protocol::network::declare::subscriber::ext::SubscriberInfo
source · pub struct SubscriberInfo {
pub reliability: Reliability,
pub mode: Mode,
}Expand description
§The subscription mode.
7 6 5 4 3 2 1 0
+-+-+-+-+-+-+-+-+
|Z|0_1| ID |
+-+-+-+---------+
% reserved |P|R%
+---------------+
- if R==1 then the subscription is reliable, else it is best effort
- if P==1 then the subscription is pull, else it is push
- rsv: Reserved
Fields§
§reliability: Reliability§mode: ModeImplementations§
Trait Implementations§
source§impl Clone for SubscriberInfo
impl Clone for SubscriberInfo
source§fn clone(&self) -> SubscriberInfo
fn clone(&self) -> SubscriberInfo
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 moresource§impl Debug for SubscriberInfo
impl Debug for SubscriberInfo
source§impl Default for SubscriberInfo
impl Default for SubscriberInfo
source§fn default() -> SubscriberInfo
fn default() -> SubscriberInfo
Returns the “default value” for a type. Read more
source§impl From<SubscriberInfo> for Info
impl From<SubscriberInfo> for Info
source§fn from(ext: SubscriberInfo) -> Self
fn from(ext: SubscriberInfo) -> Self
Converts to this type from the input type.
source§impl From<ZExtZ64<{ ZExtZ64::<$id>::id($m) }>> for SubscriberInfo
impl From<ZExtZ64<{ ZExtZ64::<$id>::id($m) }>> for SubscriberInfo
source§impl PartialEq for SubscriberInfo
impl PartialEq for SubscriberInfo
source§fn eq(&self, other: &SubscriberInfo) -> bool
fn eq(&self, other: &SubscriberInfo) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for SubscriberInfo
impl Eq for SubscriberInfo
impl StructuralPartialEq for SubscriberInfo
Auto Trait Implementations§
impl Freeze for SubscriberInfo
impl RefUnwindSafe for SubscriberInfo
impl Send for SubscriberInfo
impl Sync for SubscriberInfo
impl Unpin for SubscriberInfo
impl UnwindSafe for SubscriberInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more