pub struct SubscribeResult {
pub registration_id: u64,
pub client_id: Option<Vec<u8>>,
}Expand description
Result of decoding the SUBSCRIBE (register) response.
Fields§
§registration_id: u64USER_CHANGE_NOTIFICATION_REGS.REGID — exposed as Subscription.id.
client_id: Option<Vec<u8>>EMON client id (e.g. b"OCI:EP:301") echoed back in the NOTIFY message.
Trait Implementations§
Source§impl Clone for SubscribeResult
impl Clone for SubscribeResult
Source§fn clone(&self) -> SubscribeResult
fn clone(&self) -> SubscribeResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubscribeResult
impl Debug for SubscribeResult
Source§impl Default for SubscribeResult
impl Default for SubscribeResult
Source§fn default() -> SubscribeResult
fn default() -> SubscribeResult
Returns the “default value” for a type. Read more
impl Eq for SubscribeResult
Source§impl PartialEq for SubscribeResult
impl PartialEq for SubscribeResult
Source§fn eq(&self, other: &SubscribeResult) -> bool
fn eq(&self, other: &SubscribeResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SubscribeResult
Auto Trait Implementations§
impl Freeze for SubscribeResult
impl RefUnwindSafe for SubscribeResult
impl Send for SubscribeResult
impl Sync for SubscribeResult
impl Unpin for SubscribeResult
impl UnsafeUnpin for SubscribeResult
impl UnwindSafe for SubscribeResult
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