Skip to main content

UIStateRestoring

Trait UIStateRestoring 

Source
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§

Source

fn restorationParent( &self, ) -> Option<Retained<ProtocolObject<dyn UIStateRestoring>>>
where Self: Sized + Message,

Source

fn objectRestorationClass(&self) -> Option<&'static AnyClass>
where Self: Sized + Message,

Source

unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
where Self: Sized + Message,

§Safety

coder possibly has further requirements.

Source

unsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)
where Self: Sized + Message,

§Safety

coder possibly has further requirements.

Source

fn applicationFinishedRestoringState(&self)
where Self: Sized + Message,

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIStateRestoring

Source§

impl ProtocolType for dyn UIStateRestoring

Source§

const NAME: &'static str = "UIStateRestoring"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> UIStateRestoring for ProtocolObject<T>
where T: ?Sized + UIStateRestoring,

Implementors§

Source§

impl UIStateRestoring for UIViewController

Available on crate feature UIViewController only.