#[non_exhaustive]pub struct SubscriptionClose {
pub subscription_id: RequestId,
pub reason: SubscriptionCloseReason,
pub duration: Duration,
}Expand description
Terminal record of one subscriptions/listen stream.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.subscription_id: RequestIdJSON-RPC id of the subscriptions/listen request that opened the
stream, the same id middleware observed at acceptance.
reason: SubscriptionCloseReasonWhy the stream ended.
duration: DurationTime from acceptance to close.
Trait Implementations§
Source§impl Clone for SubscriptionClose
impl Clone for SubscriptionClose
Source§fn clone(&self) -> SubscriptionClose
fn clone(&self) -> SubscriptionClose
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubscriptionClose
impl RefUnwindSafe for SubscriptionClose
impl Send for SubscriptionClose
impl Sync for SubscriptionClose
impl Unpin for SubscriptionClose
impl UnsafeUnpin for SubscriptionClose
impl UnwindSafe for SubscriptionClose
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