pub enum Status {
Ok,
InvalidArgument,
InvalidState,
WrongThread,
Unsupported,
NativeError,
Cancelled,
Busy,
TargetLost,
NotFound,
AlreadyExists,
Unknown(i32),
}Expand description
The result of a call or of asynchronous work.
See mln_status in the
C API reference.
Variants§
Ok
InvalidArgument
An argument is invalid, such as malformed JSON or a value out of range.
InvalidState
The call doesn’t fit the current state, such as removing a source that a layer still uses.
WrongThread
The call came from a thread that can’t make it.
Unsupported
The platform, the build, or the render target lacks the feature.
NativeError
The library or the platform hit an error, such as a failed graphics driver call.
Cancelled
The work stopped before it finished, such as when its handle was released.
Busy
Another call is still using the same object.
TargetLost
The render target can’t be drawn to anymore.
NotFound
Nothing has the given ID.
AlreadyExists
Something already has the given ID.
Unknown(i32)
Implementations§
Trait Implementations§
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more