Struct chirpstack_api::ns::MulticastGroup [−][src]
pub struct MulticastGroup { pub id: Vec<u8>, pub mc_addr: Vec<u8>, pub mc_nwk_s_key: Vec<u8>, pub f_cnt: u32, pub group_type: i32, pub dr: u32, pub frequency: u32, pub ping_slot_period: u32, pub service_profile_id: Vec<u8>, pub routing_profile_id: Vec<u8>, }
Fields
id: Vec<u8>
Multicast-group ID. Note: this can be set on create. When left blank, a random ID will be generated.
mc_addr: Vec<u8>
Multicast Address for this group.
mc_nwk_s_key: Vec<u8>
Multicast network session key.
f_cnt: u32
Frame-counter (downlink).
group_type: i32
Multicast-group type (Class-B or Class-C).
dr: u32
Data-rate.
frequency: u32
Frequency (Hz).
ping_slot_period: u32
Ping-slot period. Mandatory for Class-B multicast groups.
service_profile_id: Vec<u8>
Service-profile ID.
routing_profile_id: Vec<u8>
Routing-profile ID.
Implementations
Returns the enum value of group_type
, or the default if the field is set to an invalid enum value.
Sets group_type
to the provided enum value.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message with a length-delimiter to a buffer. Read more
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MulticastGroup
impl Send for MulticastGroup
impl Sync for MulticastGroup
impl Unpin for MulticastGroup
impl UnwindSafe for MulticastGroup
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more