Skip to main content

nominal_api/conjure/errors/persistent/compute/api/
subscription_auth_expired.rs

1/// The websocket subscription auth token expired. Clients should refresh credentials and
2/// re-establish the subscription.
3#[derive(
4    Debug,
5    Clone,
6    conjure_object::serde::Serialize,
7    conjure_object::serde::Deserialize,
8    PartialEq,
9    Eq,
10    PartialOrd,
11    Ord,
12    Hash,
13    Copy
14)]
15#[serde(crate = "conjure_object::serde")]
16#[conjure_object::private::staged_builder::staged_builder]
17#[builder(crate = conjure_object::private::staged_builder, update, inline)]
18pub struct SubscriptionAuthExpired {}
19impl SubscriptionAuthExpired {
20    /// Constructs a new instance of the type.
21    #[inline]
22    pub fn new() -> Self {
23        Self::builder().build()
24    }
25}
26impl conjure_error::ErrorType for SubscriptionAuthExpired {
27    #[inline]
28    fn code() -> conjure_error::ErrorCode {
29        conjure_error::ErrorCode::PermissionDenied
30    }
31    #[inline]
32    fn name() -> &'static str {
33        "PersistentCompute:SubscriptionAuthExpired"
34    }
35    #[inline]
36    fn safe_args() -> &'static [&'static str] {
37        &[]
38    }
39}