Struct tarantool::error::TarantoolError
source · pub struct TarantoolError { /* private fields */ }
Expand description
Settable by Tarantool error type
Implementations§
source§impl 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) -> u32
pub fn error_code(&self) -> u32
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§
source§impl Debug for TarantoolError
impl Debug for TarantoolError
source§impl Display for TarantoolError
impl Display for TarantoolError
source§impl From<TarantoolError> for Error
impl From<TarantoolError> for Error
source§fn 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§
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