Struct jsonrpsee::IsUnsubscribed
source · pub struct IsUnsubscribed(/* private fields */);
Expand description
Represents a subscription until it is unsubscribed.
Implementations§
source§impl IsUnsubscribed
impl IsUnsubscribed
sourcepub fn is_unsubscribed(&self) -> bool
pub fn is_unsubscribed(&self) -> bool
Returns true if the unsubscribe method has been invoked or the subscription has been canceled.
This can be called multiple times as the element in the channel is never removed.
sourcepub async fn unsubscribed(&self)
pub async fn unsubscribed(&self)
Wrapper over tokio::sync::mpsc::Sender::closed
§Cancel safety
This method is cancel safe. Once the channel is closed, it stays closed forever and all future calls to closed will return immediately.
Trait Implementations§
source§impl Clone for IsUnsubscribed
impl Clone for IsUnsubscribed
source§fn clone(&self) -> IsUnsubscribed
fn clone(&self) -> IsUnsubscribed
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 moreAuto Trait Implementations§
impl Freeze for IsUnsubscribed
impl RefUnwindSafe for IsUnsubscribed
impl Send for IsUnsubscribed
impl Sync for IsUnsubscribed
impl Unpin for IsUnsubscribed
impl UnwindSafe for IsUnsubscribed
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)