[−][src]Struct tensorflow::Status
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.
Methods
impl Status
[src]
impl Status
[src]
pub fn new_set(code: Code, msg: &str) -> Result<Status, NulError>
[src]
Creates a status and sets its code and message.
pub fn code(&self) -> Code
[src]
Returns the status's code.
pub fn is_ok(&self) -> bool
[src]
Returns true if the status's code is Code::Ok
.
pub fn set(&mut self, code: Code, msg: &str) -> Result<(), NulError>
[src]
Sets the code and message.
Trait Implementations
impl Drop for Status
[src]
impl From<NulError> for Status
[src]
impl From<Utf8Error> for Status
[src]
impl From<IntoStringError> for Status
[src]
fn from(e: IntoStringError) -> Self
[src]
impl Display for Status
[src]
impl Debug for Status
[src]
impl Error for Status
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,