@@ -35,6 +35,7 @@ pub struct PopRequest {
35
35
}
36
36
37
37
impl PopRequest {
38
+ #[ inline]
38
39
pub fn new (
39
40
topic : CheetahString ,
40
41
consumer_group : CheetahString ,
@@ -52,62 +53,76 @@ impl PopRequest {
52
53
}
53
54
}
54
55
56
+ #[ inline]
55
57
pub fn is_locked_first ( & self ) -> bool {
56
58
self . locked_first
57
59
}
58
60
61
+ #[ inline]
59
62
pub fn set_locked_first ( & mut self , locked_first : bool ) {
60
63
self . locked_first = locked_first;
61
64
}
62
65
66
+ #[ inline]
63
67
pub fn get_consumer_group ( & self ) -> & str {
64
68
& self . consumer_group
65
69
}
66
70
71
+ #[ inline]
67
72
pub fn set_consumer_group ( & mut self , consumer_group : CheetahString ) {
68
73
self . consumer_group = consumer_group;
69
74
}
70
75
76
+ #[ inline]
71
77
pub fn get_message_queue ( & self ) -> & MessageQueue {
72
78
& self . message_queue
73
79
}
74
80
81
+ #[ inline]
75
82
pub fn set_message_queue ( & mut self , message_queue : MessageQueue ) {
76
83
self . message_queue = message_queue;
77
84
}
78
85
86
+ #[ inline]
79
87
pub fn get_topic ( & self ) -> & str {
80
88
& self . topic
81
89
}
82
90
91
+ #[ inline]
83
92
pub fn set_topic ( & mut self , topic : CheetahString ) {
84
93
self . topic = topic;
85
94
}
86
95
96
+ #[ inline]
87
97
pub fn get_pop_process_queue ( & self ) -> & PopProcessQueue {
88
98
& self . pop_process_queue
89
99
}
90
100
101
+ #[ inline]
91
102
pub fn set_pop_process_queue ( & mut self , pop_process_queue : PopProcessQueue ) {
92
103
self . pop_process_queue = pop_process_queue;
93
104
}
94
105
106
+ #[ inline]
95
107
pub fn get_init_mode ( & self ) -> i32 {
96
108
self . init_mode
97
109
}
98
110
111
+ #[ inline]
99
112
pub fn set_init_mode ( & mut self , init_mode : i32 ) {
100
113
self . init_mode = init_mode;
101
114
}
102
115
}
103
116
104
117
impl MessageRequest for PopRequest {
118
+ #[ inline]
105
119
fn get_message_request_mode ( & self ) -> MessageRequestMode {
106
120
MessageRequestMode :: Pop
107
121
}
108
122
}
109
123
110
124
impl Hash for PopRequest {
125
+ #[ inline]
111
126
fn hash < H : Hasher > ( & self , state : & mut H ) {
112
127
self . topic . hash ( state) ;
113
128
self . consumer_group . hash ( state) ;
@@ -116,6 +131,7 @@ impl Hash for PopRequest {
116
131
}
117
132
118
133
impl PartialEq for PopRequest {
134
+ #[ inline]
119
135
fn eq ( & self , other : & Self ) -> bool {
120
136
self . topic == other. topic
121
137
&& self . consumer_group == other. consumer_group
@@ -126,6 +142,7 @@ impl PartialEq for PopRequest {
126
142
impl Eq for PopRequest { }
127
143
128
144
impl std:: fmt:: Display for PopRequest {
145
+ #[ inline]
129
146
fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
130
147
write ! (
131
148
f,
0 commit comments