ShellApiRequest

Trait ShellApiRequest 

pub trait ShellApiRequest {
    type Response: Decode + Send + 'static;

    const CHANNEL: &'static str;

    // Required method
    fn encode(&self, encoder: &mut Encoder) -> Result<(), CodecError>;
}
Expand description

Generated endpoint request with the same argument/result codecs as renderer calls.

Required Associated Constants§

const CHANNEL: &'static str

Required Associated Types§

type Response: Decode + Send + 'static

Required Methods§

fn encode(&self, encoder: &mut Encoder) -> Result<(), CodecError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl ShellApiRequest for OpenDirectory

Source§

const CHANNEL: &'static str = "tuffite.dialog.openDirectory"

Source§

type Response = Option<String>

Source§

impl ShellApiRequest for OpenFile

Source§

const CHANNEL: &'static str = "tuffite.dialog.openFile"

Source§

type Response = Option<String>

Source§

impl ShellApiRequest for CreateDir

Source§

const CHANNEL: &'static str = "tuffite.fs.createDir"

Source§

type Response = ()

Source§

impl ShellApiRequest for Exists

Source§

const CHANNEL: &'static str = "tuffite.fs.exists"

Source§

type Response = bool

Source§

impl ShellApiRequest for ReadFile

Source§

const CHANNEL: &'static str = "tuffite.fs.readFile"

Source§

type Response = Bytes

Source§

impl ShellApiRequest for RemoveFile

Source§

const CHANNEL: &'static str = "tuffite.fs.removeFile"

Source§

type Response = ()

Source§

impl ShellApiRequest for WriteFile

Source§

const CHANNEL: &'static str = "tuffite.fs.writeFile"

Source§

type Response = ()

Source§

impl ShellApiRequest for Debug

Source§

const CHANNEL: &'static str = "tuffite.log.debug"

Source§

type Response = ()

Source§

impl ShellApiRequest for Error

Source§

const CHANNEL: &'static str = "tuffite.log.error"

Source§

type Response = ()

Source§

impl ShellApiRequest for Info

Source§

const CHANNEL: &'static str = "tuffite.log.info"

Source§

type Response = ()

Source§

impl ShellApiRequest for Trace

Source§

const CHANNEL: &'static str = "tuffite.log.trace"

Source§

type Response = ()

Source§

impl ShellApiRequest for Warn

Source§

const CHANNEL: &'static str = "tuffite.log.warn"

Source§

type Response = ()

Source§

impl ShellApiRequest for Request

Source§

const CHANNEL: &'static str = "tuffite.net.request"

Source§

type Response = NetworkResponse

Source§

impl ShellApiRequest for Directories

Source§

const CHANNEL: &'static str = "tuffite.path.directories"

Source§

type Response = PathDirectories

Source§

impl ShellApiRequest for Resolve

Source§

const CHANNEL: &'static str = "tuffite.path.resolve"

Source§

type Response = String

Source§

impl ShellApiRequest for Capabilities

Source§

const CHANNEL: &'static str = "tuffite.remoting.capabilities"

Source§

type Response = RemotingCapabilities

Source§

impl ShellApiRequest for Capture

Source§

const CHANNEL: &'static str = "tuffite.remoting.capture"

Source§

type Response = RemotingSnapshot

Source§

impl ShellApiRequest for InjectInput

Source§

const CHANNEL: &'static str = "tuffite.remoting.injectInput"

Source§

type Response = ()

Source§

impl ShellApiRequest for ProcessSignal

Source§

const CHANNEL: &'static str = "tuffite.remoting.processSignal"

Source§

type Response = ()

Source§

impl ShellApiRequest for SendInput

Source§

const CHANNEL: &'static str = "tuffite.remoting.sendInput"

Source§

type Response = ()

Source§

impl ShellApiRequest for Start

Source§

const CHANNEL: &'static str = "tuffite.remoting.start"

Source§

type Response = RemotingSession

Source§

impl ShellApiRequest for Stats

Source§

const CHANNEL: &'static str = "tuffite.remoting.stats"

Source§

type Response = RemotingStats

Source§

impl ShellApiRequest for Stop

Source§

const CHANNEL: &'static str = "tuffite.remoting.stop"

Source§

type Response = ()

Source§

impl ShellApiRequest for TakeSignals

Source§

const CHANNEL: &'static str = "tuffite.remoting.takeSignals"

Source§

type Response = Vec<RemotingSignal>

Source§

impl ShellApiRequest for Clear

Source§

const CHANNEL: &'static str = "tuffite.storage.clear"

Source§

type Response = ()

Source§

impl ShellApiRequest for Get

Source§

const CHANNEL: &'static str = "tuffite.storage.get"

Source§

type Response = Option<Bytes>

Source§

impl ShellApiRequest for Remove

Source§

const CHANNEL: &'static str = "tuffite.storage.remove"

Source§

type Response = ()

Source§

impl ShellApiRequest for Set

Source§

const CHANNEL: &'static str = "tuffite.storage.set"

Source§

type Response = ()

Source§

impl ShellApiRequest for Cancel

Source§

const CHANNEL: &'static str = "tuffite.utility.cancel"

Source§

type Response = ()

Source§

impl ShellApiRequest for Invoke

Source§

const CHANNEL: &'static str = "tuffite.utility.invoke"

Source§

type Response = Bytes

Source§

impl ShellApiRequest for Close

Source§

const CHANNEL: &'static str = "tuffite.window.close"

Source§

type Response = ()

Source§

impl ShellApiRequest for Create

Source§

const CHANNEL: &'static str = "tuffite.window.create"

Source§

type Response = WindowInfo

Source§

impl ShellApiRequest for Current

Source§

const CHANNEL: &'static str = "tuffite.window.current"

Source§

type Response = WindowInfo

Source§

impl ShellApiRequest for Focus

Source§

const CHANNEL: &'static str = "tuffite.window.focus"

Source§

type Response = WindowInfo

Source§

impl ShellApiRequest for GetBounds

Source§

const CHANNEL: &'static str = "tuffite.window.getBounds"

Source§

type Response = WindowBounds

Source§

impl ShellApiRequest for List

Source§

const CHANNEL: &'static str = "tuffite.window.list"

Source§

type Response = Vec<WindowInfo>

Source§

impl ShellApiRequest for Maximize

Source§

const CHANNEL: &'static str = "tuffite.window.maximize"

Source§

type Response = WindowInfo

Source§

impl ShellApiRequest for Minimize

Source§

const CHANNEL: &'static str = "tuffite.window.minimize"

Source§

type Response = WindowInfo

Source§

impl ShellApiRequest for Restore

Source§

const CHANNEL: &'static str = "tuffite.window.restore"

Source§

type Response = WindowInfo

Source§

impl ShellApiRequest for SetBounds

Source§

const CHANNEL: &'static str = "tuffite.window.setBounds"

Source§

type Response = WindowInfo

Source§

impl ShellApiRequest for SetFullscreen

Source§

const CHANNEL: &'static str = "tuffite.window.setFullscreen"

Source§

type Response = WindowInfo

Source§

impl ShellApiRequest for SetTitle

Source§

const CHANNEL: &'static str = "tuffite.window.setTitle"

Source§

type Response = WindowInfo