pub struct SubOptionsV5 {
pub qos: QoS,
pub shared_group: Option<SharedGroup>,
pub limit_subs: LimitSubsCount,
pub no_local: bool,
pub retain_as_published: bool,
pub retain_handling: RetainHandling,
pub id: Option<SubscriptionIdentifier>,
}Fields§
§qos: QoS§limit_subs: LimitSubsCount§no_local: bool§retain_as_published: bool§retain_handling: RetainHandling§id: Option<SubscriptionIdentifier>Implementations§
Source§impl SubOptionsV5
impl SubOptionsV5
pub fn retain_handling_value(&self) -> u8
pub fn to_json(&self) -> Value
pub fn deserialize_retain_handling<'de, D>(
deserializer: D,
) -> Result<RetainHandling, D::Error>where
D: Deserializer<'de>,
pub fn serialize_retain_handling<S>(
rh: &RetainHandling,
s: S,
) -> Result<S::Ok, S::Error>where
S: Serializer,
Trait Implementations§
Source§impl Clone for SubOptionsV5
impl Clone for SubOptionsV5
Source§fn clone(&self) -> SubOptionsV5
fn clone(&self) -> SubOptionsV5
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubOptionsV5
impl Debug for SubOptionsV5
Source§impl<'de> Deserialize<'de> for SubOptionsV5
impl<'de> Deserialize<'de> for SubOptionsV5
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SubOptionsV5
impl PartialEq for SubOptionsV5
Source§fn eq(&self, other: &SubOptionsV5) -> bool
fn eq(&self, other: &SubOptionsV5) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SubOptionsV5
impl Serialize for SubOptionsV5
impl Eq for SubOptionsV5
impl StructuralPartialEq for SubOptionsV5
Auto Trait Implementations§
impl !Freeze for SubOptionsV5
impl RefUnwindSafe for SubOptionsV5
impl Send for SubOptionsV5
impl Sync for SubOptionsV5
impl Unpin for SubOptionsV5
impl UnsafeUnpin for SubOptionsV5
impl UnwindSafe for SubOptionsV5
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> HashExt for Twhere
T: ?Sized,
impl<T> HashExt for Twhere
T: ?Sized,
fn hash_value(self, h: u64) -> HashWrapper<Self>where
Self: Sized,
fn hash_empty(self) -> EmptyHashWrapper<Self>where
Self: Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request