pub enum AppResultWithState<S: AppState> {
Continue(S),
Success(Option<S>),
Failure(Option<S>),
}Expand description
Variants§
Continue(S)
Continue running
Success(Option<S>)
Quit with success status
Failure(Option<S>)
Quit with failure status
Implementations§
Source§impl<S: AppState> AppResultWithState<S>
impl<S: AppState> AppResultWithState<S>
pub fn into_raw(self) -> (SDL_AppResult, *mut c_void)
Trait Implementations§
Source§impl<S: AppState> FromResidual<Option<Infallible>> for AppResultWithState<S>
Available on crate feature nightly only.
impl<S: AppState> FromResidual<Option<Infallible>> for AppResultWithState<S>
Available on crate feature
nightly only.Source§fn from_residual(_residual: Option<Infallible>) -> Self
fn from_residual(_residual: Option<Infallible>) -> Self
🔬This is a nightly-only experimental API. (
try_trait_v2)Constructs the type from a compatible
Residual type. Read moreSource§impl<S: AppState, E: Display> FromResidual<Result<Infallible, E>> for AppResultWithState<S>
Available on crate features nightly and log-errors only.
impl<S: AppState, E: Display> FromResidual<Result<Infallible, E>> for AppResultWithState<S>
Available on crate features
nightly and log-errors only.Source§fn from_residual(residual: Result<Infallible, E>) -> Self
fn from_residual(residual: Result<Infallible, E>) -> Self
🔬This is a nightly-only experimental API. (
try_trait_v2)Constructs the type from a compatible
Residual type. Read moreAuto Trait Implementations§
impl<S> Freeze for AppResultWithState<S>where
S: Freeze,
impl<S> RefUnwindSafe for AppResultWithState<S>where
S: RefUnwindSafe,
impl<S> Send for AppResultWithState<S>
impl<S> Sync for AppResultWithState<S>
impl<S> Unpin for AppResultWithState<S>where
S: Unpin,
impl<S> UnsafeUnpin for AppResultWithState<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for AppResultWithState<S>where
S: UnwindSafe,
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