Struct tensorflow::Status
source · 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§
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