pub enum DownloadFileError {
ChatNotFound(ChatNotFound),
ErrorFromMessagingService(ErrorFromMessagingService),
FileMetadataNotFound(FileMetadataNotFound),
ErrorFromFileService(ErrorFromFileService),
FileDeleted(FileDeleted),
FileDownloadFailed(FileDownloadFailed),
ErrorFromS3FileService(ErrorFromS3FileService),
FileWithoutPreview(FileWithoutPreview),
Other,
}Expand description
Ошибки при запросе файла
Variants§
ChatNotFound(ChatNotFound)
Чат не найден
ErrorFromMessagingService(ErrorFromMessagingService)
Ошибка от Messaging сервиса
FileMetadataNotFound(FileMetadataNotFound)
Метаданные файла не найдены
ErrorFromFileService(ErrorFromFileService)
Файл сервис вернул ошибку при запросе метаданных файла
FileDeleted(FileDeleted)
Файл удален
FileDownloadFailed(FileDownloadFailed)
Ошибка при скачивание файла
ErrorFromS3FileService(ErrorFromS3FileService)
Ошибка при скачивание файла из s3 файл сервиса
FileWithoutPreview(FileWithoutPreview)
Файл не имеет preview
Other
Неопределенная ошибка, смотрите логи
Trait Implementations§
Source§impl Clone for DownloadFileError
impl Clone for DownloadFileError
Source§fn clone(&self) -> DownloadFileError
fn clone(&self) -> DownloadFileError
Returns a duplicate 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 DownloadFileError
impl Debug for DownloadFileError
Source§impl<'de> Deserialize<'de> for DownloadFileError
impl<'de> Deserialize<'de> for DownloadFileError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DownloadFileError
impl RefUnwindSafe for DownloadFileError
impl Send for DownloadFileError
impl Sync for DownloadFileError
impl Unpin for DownloadFileError
impl UnwindSafe for DownloadFileError
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