Struct tauri::scope::ipc::RemoteDomainAccessScope
source · pub struct RemoteDomainAccessScope { /* private fields */ }
Expand description
IPC access configuration for a remote domain.
Implementations§
source§impl RemoteDomainAccessScope
impl RemoteDomainAccessScope
sourcepub fn allow_on_scheme(self, scheme: impl Into<String>) -> Self
pub fn allow_on_scheme(self, scheme: impl Into<String>) -> Self
Sets the scheme of the URL to allow in this scope. By default, all schemes with the given domain are allowed.
sourcepub fn add_window(self, window: impl Into<String>) -> Self
pub fn add_window(self, window: impl Into<String>) -> Self
Adds the given window label to the list of windows that uses this scope.
sourcepub fn add_plugin(self, plugin: impl Into<String>) -> Self
pub fn add_plugin(self, plugin: impl Into<String>) -> Self
Adds the given plugin to the allowed plugin list.
sourcepub fn enable_tauri_api(self) -> Self
pub fn enable_tauri_api(self) -> Self
Enables access to the Tauri API.
sourcepub fn enables_tauri_api(&self) -> bool
pub fn enables_tauri_api(&self) -> bool
Whether this scope enables Tauri API access or not.
Trait Implementations§
source§impl Clone for RemoteDomainAccessScope
impl Clone for RemoteDomainAccessScope
source§fn clone(&self) -> RemoteDomainAccessScope
fn clone(&self) -> RemoteDomainAccessScope
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RemoteDomainAccessScope
impl RefUnwindSafe for RemoteDomainAccessScope
impl Send for RemoteDomainAccessScope
impl Sync for RemoteDomainAccessScope
impl Unpin for RemoteDomainAccessScope
impl UnwindSafe for RemoteDomainAccessScope
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