Struct jsonrpc_pubsub::typed::Subscriber [−][src]
pub struct Subscriber<T, E = Error> { /* fields omitted */ }
Expand description
New PUB-SUB subscriber.
Implementations
Wrap non-typed subscriber.
Create new subscriber for tests.
Reject subscription with given error.
The returned future will resolve when the response is sent to the client.
Assign id to this subscriber.
This method consumes Subscriber
and returns Sink
if the connection is still open or error otherwise.
Assign id to this subscriber.
This method consumes Subscriber
and resolves to Sink
if the connection is still open and the id has been sent or to error otherwise.
Trait Implementations
Auto Trait Implementations
impl<T, E = Error> !RefUnwindSafe for Subscriber<T, E>
impl<T, E> Send for Subscriber<T, E> where
E: Send,
T: Send,
impl<T, E> Sync for Subscriber<T, E> where
E: Sync,
T: Sync,
impl<T, E> Unpin for Subscriber<T, E> where
E: Unpin,
T: Unpin,
impl<T, E = Error> !UnwindSafe for Subscriber<T, E>