pub struct SubscriptionRegistrar<O> { /* private fields */ }
Expand description
A cheaply copyable handle that can be used to register new Subscriber
s with
the HangingGetBroker
.
Implementations§
Source§impl<O> SubscriptionRegistrar<O>
impl<O> SubscriptionRegistrar<O>
Sourcepub async fn new_subscriber(
&mut self,
) -> Result<Subscriber<O>, HangingGetServerError>
pub async fn new_subscriber( &mut self, ) -> Result<Subscriber<O>, HangingGetServerError>
Register a new subscriber
Trait Implementations§
Auto Trait Implementations§
impl<O> Freeze for SubscriptionRegistrar<O>
impl<O> !RefUnwindSafe for SubscriptionRegistrar<O>
impl<O> Send for SubscriptionRegistrar<O>where
O: Send,
impl<O> Sync for SubscriptionRegistrar<O>where
O: Send,
impl<O> Unpin for SubscriptionRegistrar<O>
impl<O> !UnwindSafe for SubscriptionRegistrar<O>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)