pub struct SharedRawSubscription { /* private fields */ }Expand description
A logical raw multicast subscription managed by SharedRawContext.
Multiple joined subscriptions can share one underlying capture socket when they use the same IP family and resolved interface. Duplicate logical subscriptions share a reference-counted kernel membership while each handle keeps its own lifecycle state.
Implementations§
Sourcepub fn id(&self) -> SubscriptionId
pub fn id(&self) -> SubscriptionId
Returns the subscription’s ID.
Sourcepub fn config(&self) -> &RawSubscriptionConfig
pub fn config(&self) -> &RawSubscriptionConfig
Returns the immutable subscription configuration.
Sourcepub fn state(&self) -> SubscriptionState
pub fn state(&self) -> SubscriptionState
Returns the current lifecycle state.
Trait Implementations§
Source§fn clone(&self) -> SharedRawSubscription
fn clone(&self) -> SharedRawSubscription
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 moreAuto Trait Implementations§
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