pub struct Status { /* private fields */ }
Expand description
Holds error information when communicating with back and forth with tensorflow
.
It either has an Code::Ok
code, or otherwise an error code with an associated message.
Implementations§
Source§impl Status
impl Status
Sourcepub fn new_set(code: Code, msg: &str) -> Result<Status, NulError>
pub fn new_set(code: Code, msg: &str) -> Result<Status, NulError>
Creates a status and sets its code and message.
Sourcepub fn new_set_lossy(code: Code, msg: &str) -> Status
pub fn new_set_lossy(code: Code, msg: &str) -> Status
Creates a status and sets its code and message.
Trait Implementations§
Source§impl Error for Status
impl Error for Status
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<IntoStringError> for Status
impl From<IntoStringError> for Status
Source§fn from(e: IntoStringError) -> Self
fn from(e: IntoStringError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for Status
impl From<ParseIntError> for Status
Source§fn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<Status> for SaveModelError
impl From<Status> for SaveModelError
impl Send for Status
impl Sync for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Unpin for Status
impl UnwindSafe for Status
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