pub struct SubscribeResponse {
pub subscription_id: u32,
pub max_interval: u16,
}Expand description
Decoded SubscribeResponse message.
Fields§
§subscription_id: u32§max_interval: u16Implementations§
Source§impl SubscribeResponse
impl SubscribeResponse
Sourcepub fn parse(tlv: &TlvItem) -> Result<SubscribeResponse>
pub fn parse(tlv: &TlvItem) -> Result<SubscribeResponse>
Parse the TLV payload of an IM SubscribeResponse message.
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 moreAuto 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