Skip to main content

SessionDoor

Trait SessionDoor 

pub trait SessionDoor {
    // Required methods
    fn workspace(&self) -> Option<String>;
    fn invoke(
        &mut self,
        operation: InvocationId,
        admitted: bool,
        request: InvokeRequest,
    ) -> Result<ResourceOperationStart, DoorError>;
}
Expand description

Where a host sends what an action asks of the session beyond its app.

Required Methods§

fn workspace(&self) -> Option<String>

The workspace this window was admitted to, which a request addresses when the action’s own route names none.

fn invoke( &mut self, operation: InvocationId, admitted: bool, request: InvokeRequest, ) -> Result<ResourceOperationStart, DoorError>

Hand request to the session for the operation operation, which the session’s broker admitted when admitted. The answer is the operation’s start: done, or accepted and finished later by the host.

§Errors

Why the session did not take it.

Implementors§