Struct tarantool::error::TarantoolError
source · [−]pub struct TarantoolError { /* private fields */ }
Expand description
Settable by Tarantool error type
Implementations
sourceimpl TarantoolError
impl TarantoolError
sourcepub fn maybe_last() -> Result<(), Self>
pub fn maybe_last() -> Result<(), Self>
Tries to get the information about the last API call error. If error was not set
returns Ok(())
sourcepub fn error_code(&self) -> TarantoolErrorCode
pub fn error_code(&self) -> TarantoolErrorCode
Return IPROTO error code
sourcepub fn error_type(&self) -> String
pub fn error_type(&self) -> String
Return the error type, e.g. “ClientError”, “SocketError”, etc.
Trait Implementations
sourceimpl Debug for TarantoolError
impl Debug for TarantoolError
sourceimpl Display for TarantoolError
impl Display for TarantoolError
sourceimpl From<TarantoolError> for Error
impl From<TarantoolError> for Error
sourcefn from(error: TarantoolError) -> Self
fn from(error: TarantoolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for TarantoolError
impl Send for TarantoolError
impl Sync for TarantoolError
impl Unpin for TarantoolError
impl UnwindSafe for TarantoolError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more