pulsar_binary_protocol_spec/commands/
success_command.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{protos::protobuf::pulsar_api::CommandSuccess, types::RequestId};

#[derive(Clone, Debug)]
pub struct SuccessCommand {
    #[cfg(feature = "with-hacking-commands")]
    pub inner_command: CommandSuccess,
    #[cfg(not(feature = "with-hacking-commands"))]
    pub(crate) inner_command: CommandSuccess,
}
impl SuccessCommand {
    pub fn get_request_id(&self) -> RequestId {
        RequestId::new(self.inner_command.get_request_id())
    }
}