pub struct CreateGroupMsg {
pub header: Option<Header>,
pub frq_divider: u32,
pub alias: String,
pub paths: Vec<String>,
}
Expand description
Request to create a publisher group.
User’s request to start publishing specified parameters. Several users may subscribe to the same group. This mechanism reduces the load on the server and allows more clients to get frequent updates.
User may choose a scale factor for the publishing rate of the group.
Server’s reply: GroupStatusMsg, with following status codes:
StatusCode::OK - operation successful.
StatusCode::FAILED - operation failed.
StatusCode::PERMISSION_DENIED - Permission denied because the user has no access rights.
StatusCode::FAILED_TO_SET_REQUESTED_FRQ - operation successful, but failed to change publisher’s frequency, because the group has already existed.
StatusCode::FAILED_TO_DECODE - failed to decode request message.
StatusCode::SUB_LIST_IS_FULL - failed to subscribe for a parameter, because subscription list is full. Create new parameter group.
StatusCode::WRONG_PARAMETER_PATH - failed to find parameter, because requested path is wrong.
StatusCode::GROUP_LIST_IS_FULL - failed to create new group, because the group list is full. Release at least one group.
Fields§
§header: Option<Header>
Frame counter and actual time.
frq_divider: u32
Requested frequency divider, to scale down publisher rate.
alias: String
Name of the group.
paths: Vec<String>
List of the parameters.
Trait Implementations§
Source§impl Clone for CreateGroupMsg
impl Clone for CreateGroupMsg
Source§fn clone(&self) -> CreateGroupMsg
fn clone(&self) -> CreateGroupMsg
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CreateGroupMsg
impl Debug for CreateGroupMsg
Source§impl Default for CreateGroupMsg
impl Default for CreateGroupMsg
Source§impl Message for CreateGroupMsg
impl Message for CreateGroupMsg
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
.