Skip to main content

Portal

Trait Portal 

Source
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§

Source

fn call( &mut self, operation: DesktopOperation, ) -> Result<PortalReply, PortalError>

§Errors

Returns a typed fail-closed portal refusal.

Source

fn cancel(&mut self, token: u64)

Source

fn cleanup(&mut self)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§