pub struct SubscriptionRef {
pub peer: String,
pub request_id: u64,
}Expand description
A (peer, request id) reference naming one subscription on one peer.
Request IDs are only unique within a peer’s session, so neither half identifies a subscription on its own.
Fields§
§peer: StringSource-local peer identifier.
request_id: u64Request ID of the subscription on that peer.
Implementations§
Trait Implementations§
Source§impl Clone for SubscriptionRef
impl Clone for SubscriptionRef
Source§fn clone(&self) -> SubscriptionRef
fn clone(&self) -> SubscriptionRef
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 SubscriptionRef
impl Debug for SubscriptionRef
impl Eq for SubscriptionRef
Source§impl PartialEq for SubscriptionRef
impl PartialEq for SubscriptionRef
impl StructuralPartialEq for SubscriptionRef
Auto Trait Implementations§
impl Freeze for SubscriptionRef
impl RefUnwindSafe for SubscriptionRef
impl Send for SubscriptionRef
impl Sync for SubscriptionRef
impl Unpin for SubscriptionRef
impl UnsafeUnpin for SubscriptionRef
impl UnwindSafe for SubscriptionRef
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