pub struct MulticastGroup {Show 13 fields
pub id: String,
pub name: String,
pub application_id: String,
pub region: i32,
pub mc_addr: String,
pub mc_nwk_s_key: String,
pub mc_app_s_key: String,
pub f_cnt: u32,
pub group_type: i32,
pub dr: u32,
pub frequency: u32,
pub class_b_ping_slot_periodicity: u32,
pub class_c_scheduling_type: i32,
}Fields§
§id: StringID (UUID). This will be generated automatically on create.
name: StringName.
application_id: StringApplication ID. After creation, this can not be updated.
region: i32Region.
mc_addr: StringMulticast address (HEX encoded DevAddr).
mc_nwk_s_key: StringMulticast network session key (HEX encoded AES128 key).
mc_app_s_key: StringMulticast application session key (HEX encoded AES128 key).
f_cnt: u32Frame-counter.
group_type: i32Multicast group type.
dr: u32Data-rate.
frequency: u32Frequency (Hz).
class_b_ping_slot_periodicity: u32Class-B ping-slot periodicity (only for Class-B). Valid options are: 0 - 7.
Number of ping-slots per beacon-period: pingNb = 2^(7-periodicity)
Periodicity: 0 = 128 ping-slots per beacon period = ~ every 1 sec Periodicity: 7 = 1 ping-slot per beacon period = ~ every 128 sec
class_c_scheduling_type: i32Scheduling type (only for Class-C).
Implementations§
Source§impl MulticastGroup
impl MulticastGroup
Sourcepub fn region(&self) -> Region
pub fn region(&self) -> Region
Returns the enum value of region, or the default if the field is set to an invalid enum value.
Sourcepub fn set_region(&mut self, value: Region)
pub fn set_region(&mut self, value: Region)
Sets region to the provided enum value.
Sourcepub fn group_type(&self) -> MulticastGroupType
pub fn group_type(&self) -> MulticastGroupType
Returns the enum value of group_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_group_type(&mut self, value: MulticastGroupType)
pub fn set_group_type(&mut self, value: MulticastGroupType)
Sets group_type to the provided enum value.
Sourcepub fn class_c_scheduling_type(&self) -> MulticastGroupSchedulingType
pub fn class_c_scheduling_type(&self) -> MulticastGroupSchedulingType
Returns the enum value of class_c_scheduling_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_class_c_scheduling_type(
&mut self,
value: MulticastGroupSchedulingType,
)
pub fn set_class_c_scheduling_type( &mut self, value: MulticastGroupSchedulingType, )
Sets class_c_scheduling_type to the provided enum value.
Trait Implementations§
Source§impl Clone for MulticastGroup
impl Clone for MulticastGroup
Source§fn clone(&self) -> MulticastGroup
fn clone(&self) -> MulticastGroup
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MulticastGroup
impl Debug for MulticastGroup
Source§impl Default for MulticastGroup
impl Default for MulticastGroup
Source§impl Hash for MulticastGroup
impl Hash for MulticastGroup
Source§impl Message for MulticastGroup
impl Message for MulticastGroup
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for MulticastGroup
impl PartialEq for MulticastGroup
impl Eq for MulticastGroup
impl StructuralPartialEq for MulticastGroup
Auto Trait Implementations§
impl Freeze for MulticastGroup
impl RefUnwindSafe for MulticastGroup
impl Send for MulticastGroup
impl Sync for MulticastGroup
impl Unpin for MulticastGroup
impl UnwindSafe for MulticastGroup
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request