pub enum NextcloudTalkError {
Show 20 variants
ServiceNotInitialized,
AlreadyRunning,
ConnectionFailed(String),
ApiError(String),
ConfigError(String),
MissingSetting(String),
InvalidRoomToken(String),
InvalidArgument(String),
MessageTooLong {
length: usize,
max: usize,
},
RoomNotFound(String),
UserNotFound(String),
PermissionDenied(String),
AuthenticationFailed(String),
SignatureVerificationFailed,
RateLimited {
retry_after_secs: u64,
},
Timeout {
timeout_ms: u64,
},
Internal(String),
SerializationError(String),
ValidationFailed(String),
WebhookError(String),
}Expand description
Errors produced by the Nextcloud Talk plugin.
Variants§
ServiceNotInitialized
The Nextcloud Talk service has not been started yet.
AlreadyRunning
The Nextcloud Talk service is already running.
ConnectionFailed(String)
A connection attempt to Nextcloud Talk failed.
ApiError(String)
A Nextcloud Talk API call failed.
ConfigError(String)
Configuration values were invalid or inconsistent.
MissingSetting(String)
A required configuration setting was missing.
InvalidRoomToken(String)
A provided room token was invalid.
InvalidArgument(String)
A caller provided an invalid argument.
MessageTooLong
A message exceeded Nextcloud Talk’s maximum allowed length.
RoomNotFound(String)
The requested room could not be found.
UserNotFound(String)
The requested user could not be found.
PermissionDenied(String)
The operation is not permitted.
AuthenticationFailed(String)
Authentication with Nextcloud Talk failed.
SignatureVerificationFailed
HMAC signature verification failed.
RateLimited
Nextcloud Talk API rate limit was hit.
Timeout
The operation did not complete within the expected time.
Internal(String)
An internal error occurred.
SerializationError(String)
Serialization/deserialization failed.
ValidationFailed(String)
An action failed validation.
WebhookError(String)
An error occurred in the webhook server.
Implementations§
Source§impl NextcloudTalkError
impl NextcloudTalkError
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Returns true if retrying the operation might succeed.
Sourcepub fn retry_after_secs(&self) -> Option<u64>
pub fn retry_after_secs(&self) -> Option<u64>
Returns an optional suggested retry delay (in seconds).
Trait Implementations§
Source§impl Debug for NextcloudTalkError
impl Debug for NextcloudTalkError
Source§impl Display for NextcloudTalkError
impl Display for NextcloudTalkError
Source§impl Error for NextcloudTalkError
impl Error for NextcloudTalkError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Error> for NextcloudTalkError
impl From<Error> for NextcloudTalkError
Source§impl From<Error> for NextcloudTalkError
impl From<Error> for NextcloudTalkError
Auto Trait Implementations§
impl Freeze for NextcloudTalkError
impl RefUnwindSafe for NextcloudTalkError
impl Send for NextcloudTalkError
impl Sync for NextcloudTalkError
impl Unpin for NextcloudTalkError
impl UnsafeUnpin for NextcloudTalkError
impl UnwindSafe for NextcloudTalkError
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.