pub enum ViewMode {
Auto,
Hosted,
Direct,
}
Expand description
Enum used by Config to control what sort of views will be used.
Variants§
Auto
Choose automatically based on the environment
Hosted
Only create views hosted by Scenic.
Direct
Only create views directly running directly on the display coordinator.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ViewMode
impl<'de> Deserialize<'de> for ViewMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ViewMode
impl RefUnwindSafe for ViewMode
impl Send for ViewMode
impl Sync for ViewMode
impl Unpin for ViewMode
impl UnwindSafe for ViewMode
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