pub struct SubscribeResponse {
pub local_message_id: u64,
pub channel_id: u64,
pub channel_type: u8,
pub action: u8,
pub reason_code: u8,
}Expand description
订阅确认消息
Fields§
§local_message_id: u64§channel_id: u64§channel_type: u8§action: u8§reason_code: u8Implementations§
Source§impl SubscribeResponse
impl SubscribeResponse
pub fn new() -> Self
pub fn create_packet(self) -> Packet<Self>
Trait Implementations§
Source§impl Clone for SubscribeResponse
impl Clone for SubscribeResponse
Source§fn clone(&self) -> SubscribeResponse
fn clone(&self) -> SubscribeResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubscribeResponse
impl Debug for SubscribeResponse
Source§impl Default for SubscribeResponse
impl Default for SubscribeResponse
Source§fn default() -> SubscribeResponse
fn default() -> SubscribeResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubscribeResponse
impl<'de> Deserialize<'de> for SubscribeResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for SubscribeResponse
impl Message for SubscribeResponse
Source§fn message_type(&self) -> MessageType
fn message_type(&self) -> MessageType
获取消息类型
Auto Trait Implementations§
impl Freeze for SubscribeResponse
impl RefUnwindSafe for SubscribeResponse
impl Send for SubscribeResponse
impl Sync for SubscribeResponse
impl Unpin for SubscribeResponse
impl UnsafeUnpin for SubscribeResponse
impl UnwindSafe for SubscribeResponse
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
Mutably borrows from an owned value. Read more