Skip to main content

Dispatcher

Struct Dispatcher 

Source
pub struct Dispatcher { /* private fields */ }
Available on crate feature virt only.

Trait Implementations§

Source§

impl Debug for Dispatcher

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Dispatcher

Source§

fn default() -> Dispatcher

Returns the “default value” for a type. Read more
Source§

impl ExtensionDispatch for Dispatcher

Source§

type BackendId = BackendIds

The ID type for the custom backends used by this dispatch implementation.
Source§

type Context = StagingContext

The context type used by this dispatch.
Source§

type ExtensionId = ExtensionIds

The ID type for the extensions supported by this dispatch implementation.
Source§

fn core_request<P: Platform>( &mut self, _backend: &Self::BackendId, ctx: &mut Context<Self::Context>, request: &Request, resources: &mut ServiceResources<P>, ) -> Result<Reply, Error>

Executes a request using a backend or returns Error::RequestNotAvailable if it is not supported by the backend.
Source§

fn extension_request<P: Platform>( &mut self, _backend: &Self::BackendId, extension: &Self::ExtensionId, ctx: &mut Context<Self::Context>, request: &SerdeExtension, resources: &mut ServiceResources<P>, ) -> Result<SerdeExtension, Error>

Executes an extension request using a backend or returns Error::RequestNotAvailable if it is not supported by the backend.
Source§

impl ExtensionId<ChunkedExtension> for Dispatcher

Available on crate feature chunked only.
Source§

const ID: ExtensionIds = ExtensionIds::Chunked

The ID assigned to the E extension.
Source§

type Id = ExtensionIds

The ID type used by the runner.
Source§

impl ExtensionId<FsInfoExtension> for Dispatcher

Available on crate feature fs-info only.
Source§

const ID: ExtensionIds = ExtensionIds::FsInfo

The ID assigned to the E extension.
Source§

type Id = ExtensionIds

The ID type used by the runner.
Source§

impl ExtensionId<HkdfExtension> for Dispatcher

Available on crate feature hkdf only.
Source§

const ID: ExtensionIds = ExtensionIds::Hkdf

The ID assigned to the E extension.
Source§

type Id = ExtensionIds

The ID type used by the runner.
Source§

impl ExtensionId<HpkeExtension> for Dispatcher

Available on crate feature hpke only.
Source§

const ID: ExtensionIds = ExtensionIds::Hpke

The ID assigned to the E extension.
Source§

type Id = ExtensionIds

The ID type used by the runner.
Source§

impl ExtensionId<ManageExtension> for Dispatcher

Available on crate feature manage only.
Source§

const ID: ExtensionIds = ExtensionIds::Manage

The ID assigned to the E extension.
Source§

type Id = ExtensionIds

The ID type used by the runner.
Source§

impl ExtensionId<WrapKeyToFileExtension> for Dispatcher

Available on crate feature wrap-key-to-file only.
Source§

const ID: ExtensionIds = ExtensionIds::WrapKeyToFile

The ID assigned to the E extension.
Source§

type Id = ExtensionIds

The ID type used by the runner.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Dispatch for T

Source§

type BackendId = <T as ExtensionDispatch>::BackendId

The ID type for the custom backends used by this dispatch implementation.
Source§

type Context = <T as ExtensionDispatch>::Context

The context type used by this dispatch.
Source§

fn request<P>( &mut self, backend: &<T as Dispatch>::BackendId, ctx: &mut Context<<T as Dispatch>::Context>, request: &Request, resources: &mut ServiceResources<P>, ) -> Result<Reply, Error>
where P: Platform,

Executes a request using a backend or returns Error::RequestNotAvailable if it is not supported by the backend.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V