pub struct Scope { /* private fields */ }
Expand description
IPC scope.
Implementations§
source§impl Scope
impl Scope
sourcepub fn configure_remote_access(&self, access: RemoteDomainAccessScope)
pub fn configure_remote_access(&self, access: RemoteDomainAccessScope)
Adds the given configuration for remote access.
Examples
use tauri::{Manager, scope::ipc::RemoteDomainAccessScope};
tauri::Builder::default()
.setup(|app| {
app.ipc_scope().configure_remote_access(
RemoteDomainAccessScope::new("tauri.app")
.add_window("main")
.enable_tauri_api()
);
Ok(())
});
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnwindSafe for Scope
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