pub enum NativeView {
Web {
url: String,
html: String,
generation: u64,
navigation: Vec<String>,
sandbox: String,
background: Option<Color>,
data_dir: String,
browser_args: String,
},
}Expand description
Uma vista nativa pedida por um componente ([Component::native_view]).
Variants§
Web
Navegador embutido: abre url ou, sem ela, mostra html. Quando generation
muda, a plataforma carrega de novo. navigation: os endereços (origens ou prefixos)
para onde a página pode navegar (vazia, todos); sandbox: o atributo do <iframe>
no navegador.
O ambiente do navegador (só ao criar a vista; o relatório do Tabernáculo, W07):
background é a cor antes da primeira pintura da página; data_dir, a pasta de dados
(vazia: a do sistema); browser_args, os argumentos do navegador do sistema (o WebView2).
Trait Implementations§
Source§impl Clone for NativeView
impl Clone for NativeView
Source§impl Debug for NativeView
impl Debug for NativeView
Source§impl PartialEq for NativeView
impl PartialEq for NativeView
impl StructuralPartialEq for NativeView
Auto Trait Implementations§
impl Forget for NativeView
impl Freeze for NativeView
impl Move for NativeView
impl RefUnwindSafe for NativeView
impl Send for NativeView
impl Sync for NativeView
impl Unpin for NativeView
impl UnsafeUnpin for NativeView
impl UnwindSafe for NativeView
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