pub enum ResponseResult {
OkInitCompleted,
OkNeedRequest,
Ok,
Error(String),
}Expand description
Результат обработки ответа
Variants§
OkInitCompleted
Запрос успешен - инициализация завершена
OkNeedRequest
Запрос успешен - требуется следующий запрос
Ok
Запрос успешен
Error(String)
Запрос неуспешен
Implementations§
Source§impl ResponseResult
impl ResponseResult
Sourcepub fn ok_init_completed<TError>() -> Result<Self, TError>
pub fn ok_init_completed<TError>() -> Result<Self, TError>
Запрос успешен - инициализация завершена
Sourcepub fn ok_need_request<TError>() -> Result<Self, TError>
pub fn ok_need_request<TError>() -> Result<Self, TError>
Запрос успешен - требуется следующий запрос
Trait Implementations§
Source§impl Clone for ResponseResult
impl Clone for ResponseResult
Source§fn clone(&self) -> ResponseResult
fn clone(&self) -> ResponseResult
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 moreAuto Trait Implementations§
impl Freeze for ResponseResult
impl RefUnwindSafe for ResponseResult
impl Send for ResponseResult
impl Sync for ResponseResult
impl Unpin for ResponseResult
impl UnsafeUnpin for ResponseResult
impl UnwindSafe for ResponseResult
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