Struct nostr_sdk::relay::ActiveSubscription
source · pub struct ActiveSubscription { /* private fields */ }
Expand description
Relay instance’s actual subscription with its unique id
Implementations§
source§impl ActiveSubscription
impl ActiveSubscription
sourcepub fn new() -> Self
pub fn new() -> Self
Create new empty ActiveSubscription
sourcepub fn with_filters(filters: Vec<Filter>) -> Self
pub fn with_filters(filters: Vec<Filter>) -> Self
Create new empty ActiveSubscription
sourcepub fn id(&self) -> SubscriptionId
pub fn id(&self) -> SubscriptionId
Get SubscriptionId
Trait Implementations§
source§impl Clone for ActiveSubscription
impl Clone for ActiveSubscription
source§fn clone(&self) -> ActiveSubscription
fn clone(&self) -> ActiveSubscription
Returns a copy 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 ActiveSubscription
impl Debug for ActiveSubscription
Auto Trait Implementations§
impl RefUnwindSafe for ActiveSubscription
impl Send for ActiveSubscription
impl Sync for ActiveSubscription
impl Unpin for ActiveSubscription
impl UnwindSafe for ActiveSubscription
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