pub trait Portal: Send {
// Required methods
fn call(
&mut self,
operation: DesktopOperation,
) -> Result<PortalReply, PortalError>;
fn cancel(&mut self, token: u64);
fn cleanup(&mut self);
}Expand description
Desktop operations remain behind one injected portal boundary.
Required Methods§
Sourcefn call(
&mut self,
operation: DesktopOperation,
) -> Result<PortalReply, PortalError>
fn call( &mut self, operation: DesktopOperation, ) -> Result<PortalReply, PortalError>
§Errors
Returns a typed fail-closed portal refusal.
fn cancel(&mut self, token: u64)
fn cleanup(&mut self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".