pub enum ConsensusError {
ConnectFailed,
InvalidSchedule,
InvalidOptions,
TooLarge(usize),
Concluding,
InsertFailed,
Overflow,
Closed,
Runtime(RuntimeError),
}Expand description
Ошибки сессии CONSENSUS.
Variants§
ConnectFailed
Клиентская библиотека не создала сессию.
InvalidSchedule
deadline не позже start.
InvalidOptions
Недопустимые ConsensusOptions.
TooLarge(usize)
Элемент слишком велик; в поле его длина.
Concluding
conclude уже вызван: ни вставок, ни повторного conclude больше
быть не может.
InsertFailed
Сервис не принял элемент.
Overflow
Приложение не успевало читать результат, и очередь переполнилась. Множество получено не полностью.
Closed
Сессия уничтожена.
Runtime(RuntimeError)
Поток планировщика остановлен или его очередь переполнена.
Trait Implementations§
Source§impl Debug for ConsensusError
impl Debug for ConsensusError
Source§impl Display for ConsensusError
impl Display for ConsensusError
Source§impl Error for ConsensusError
impl Error for ConsensusError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<RuntimeError> for ConsensusError
impl From<RuntimeError> for ConsensusError
Source§fn from(source: RuntimeError) -> Self
fn from(source: RuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ConsensusError
impl !UnwindSafe for ConsensusError
impl Freeze for ConsensusError
impl Send for ConsensusError
impl Sync for ConsensusError
impl Unpin for ConsensusError
impl UnsafeUnpin for ConsensusError
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