pub unsafe trait UIStateRestoring: NSObjectProtocol + MainThreadOnly {
// Provided methods
fn restorationParent(
&self,
) -> Option<Retained<ProtocolObject<dyn UIStateRestoring>>>
where Self: Sized + Message { ... }
fn objectRestorationClass(&self) -> Option<&'static AnyClass>
where Self: Sized + Message { ... }
unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
where Self: Sized + Message { ... }
unsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)
where Self: Sized + Message { ... }
fn applicationFinishedRestoringState(&self)
where Self: Sized + Message { ... }
}Available on crate feature
UIStateRestoration only.Expand description
Provided Methods§
fn restorationParent( &self, ) -> Option<Retained<ProtocolObject<dyn UIStateRestoring>>>
fn objectRestorationClass(&self) -> Option<&'static AnyClass>
Sourceunsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
§Safety
coder possibly has further requirements.
Sourceunsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)
unsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)
§Safety
coder possibly has further requirements.
fn applicationFinishedRestoringState(&self)
Trait Implementations§
impl<T> ImplementedBy<T> for dyn UIStateRestoring
Source§impl ProtocolType for dyn UIStateRestoring
impl ProtocolType for dyn UIStateRestoring
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
impl<T> UIStateRestoring for ProtocolObject<T>where
T: ?Sized + UIStateRestoring,
Implementors§
impl UIStateRestoring for UIViewController
Available on crate feature
UIViewController only.