pub struct SubscriptionError {
pub total_host_execution_duration_micros: u64,
pub request_id: Option<u32>,
pub query_id: Option<u32>,
pub table_id: Option<TableId>,
pub error: Box<str>,
}Expand description
Server response to an error at any point of the subscription lifecycle. If this error doesn’t have a request_id, the client should drop all subscriptions.
Fields§
§total_host_execution_duration_micros: u64The overall time between the server receiving a request and sending the response.
request_id: Option<u32>Provided by the client via a Subscribe or Unsubscribe message.
None if this occurred as the result of a TransactionUpdate.
query_id: Option<u32>Provided by the client via a Subscribe or Unsubscribe message.
None if this occurred as the result of a TransactionUpdate.
table_id: Option<TableId>The return table of the query in question. The server is not required to set this field. It has been added to avoid a breaking change post 1.0.
If unset, an error results in the entire subscription being dropped. Otherwise only queries of this table type must be dropped.
error: Box<str>An error message describing the failure.
This should reference specific fragments of the query where applicable,
but should not include the full text of the query,
as the client can retrieve that from the request_id.
This is intended for diagnostic purposes. It need not have a predictable/parseable format.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SubscriptionError
impl<'de> Deserialize<'de> for SubscriptionError
Source§fn deserialize<D>(
deserializer: D,
) -> Result<SubscriptionError, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<SubscriptionError, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
deserializer.Source§impl<F> From<SubscriptionError> for ServerMessage<F>where
F: WebsocketFormat,
impl<F> From<SubscriptionError> for ServerMessage<F>where
F: WebsocketFormat,
Source§fn from(original: SubscriptionError) -> ServerMessage<F>
fn from(original: SubscriptionError) -> ServerMessage<F>
Source§impl Serialize for SubscriptionError
impl Serialize for SubscriptionError
Source§fn serialize<S>(
&self,
__serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
__serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
self in the data format of S using the provided serializer.Source§impl SpacetimeType for SubscriptionError
impl SpacetimeType for SubscriptionError
Source§fn make_type<S>(__typespace: &mut S) -> AlgebraicTypewhere
S: TypespaceBuilder,
fn make_type<S>(__typespace: &mut S) -> AlgebraicTypewhere
S: TypespaceBuilder,
AlgebraicType representing the type for Self in SATS
and in the typing context in typespace. This is used by the
automatic type registration system in Rust modules. Read moreAuto Trait Implementations§
impl Freeze for SubscriptionError
impl RefUnwindSafe for SubscriptionError
impl Send for SubscriptionError
impl Sync for SubscriptionError
impl Unpin for SubscriptionError
impl UnwindSafe for SubscriptionError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Satn for T
impl<T> Satn for T
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
f.Source§fn fmt_psql(
&self,
f: &mut Formatter<'_>,
ty: &PsqlType<'_>,
) -> Result<(), Error>
fn fmt_psql( &self, f: &mut Formatter<'_>, ty: &PsqlType<'_>, ) -> Result<(), Error>
f.Source§fn to_satn(&self) -> String
fn to_satn(&self) -> String
String.Source§fn to_satn_pretty(&self) -> String
fn to_satn_pretty(&self) -> String
String.