Enum jsonrpsee_core::error::SubscriptionClosed
source · pub enum SubscriptionClosed {
RemotePeerAborted,
Success,
Failed(ErrorObject<'static>),
}
Expand description
A type to represent when a subscription gets closed by either the server or client side.
Variants§
RemotePeerAborted
The remote peer closed the connection or called the unsubscribe method.
Success
The subscription was completed successfully by the server.
Failed(ErrorObject<'static>)
The subscription failed during execution by the server.
Trait Implementations§
source§impl Clone for SubscriptionClosed
impl Clone for SubscriptionClosed
source§fn clone(&self) -> SubscriptionClosed
fn clone(&self) -> SubscriptionClosed
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 SubscriptionClosed
impl Debug for SubscriptionClosed
source§impl Into<ErrorObject<'static>> for SubscriptionClosed
impl Into<ErrorObject<'static>> for SubscriptionClosed
source§fn into(self) -> ErrorObjectOwned
fn into(self) -> ErrorObjectOwned
Converts this type into the (usually inferred) input type.