Skip to main content

StagingBackend

Struct StagingBackend 

Source
#[non_exhaustive]
pub struct StagingBackend { pub manage: ManageState, }

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§manage: ManageState
Available on crate feature manage only.

Implementations§

Source§

impl StagingBackend

Source

pub fn new() -> Self

Trait Implementations§

Source§

impl Backend for StagingBackend

Source§

type Context = StagingContext

The context for requests handled by this backend.
Source§

fn request<P>( &mut self, core_ctx: &mut CoreContext, backend_ctx: &mut Self::Context, request: &Request, resources: &mut ServiceResources<P>, ) -> Result<Reply, Error>
where P: Platform,

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

impl Clone for StagingBackend

Source§

fn clone(&self) -> StagingBackend

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StagingBackend

Source§

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

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

impl Default for StagingBackend

Source§

fn default() -> StagingBackend

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

impl ExtensionImpl<ChunkedExtension> for StagingBackend

Available on crate feature chunked only.
Source§

fn extension_request<P: Platform>( &mut self, core_ctx: &mut CoreContext, backend_ctx: &mut Self::Context, request: &ChunkedRequest, resources: &mut ServiceResources<P>, ) -> Result<ChunkedReply, Error>

Handles an extension request.
Source§

fn extension_request_serialized<P>( &mut self, core_ctx: &mut CoreContext, backend_ctx: &mut Self::Context, request: &SerdeExtension, resources: &mut ServiceResources<P>, ) -> Result<SerdeExtension, Error>
where P: Platform,

Handles an extension request and performs the necessary serialization and deserialization between request::SerdeExtension and Extension::Request as well as reply::SerdeExtension and Extension::Reply.
Source§

impl ExtensionImpl<FsInfoExtension> for StagingBackend

Available on crate feature fs-info only.
Source§

fn extension_request<P: Platform>( &mut self, _core_ctx: &mut CoreContext, _backend_ctx: &mut Self::Context, request: &FsInfoExtensionRequest, resources: &mut ServiceResources<P>, ) -> Result<FsInfoExtensionReply, Error>

Handles an extension request.
Source§

fn extension_request_serialized<P>( &mut self, core_ctx: &mut CoreContext, backend_ctx: &mut Self::Context, request: &SerdeExtension, resources: &mut ServiceResources<P>, ) -> Result<SerdeExtension, Error>
where P: Platform,

Handles an extension request and performs the necessary serialization and deserialization between request::SerdeExtension and Extension::Request as well as reply::SerdeExtension and Extension::Reply.
Source§

impl ExtensionImpl<HkdfExtension> for StagingBackend

Available on crate feature hkdf only.
Source§

fn extension_request<P: Platform>( &mut self, core_ctx: &mut CoreContext, _backend_ctx: &mut StagingContext, request: &HkdfRequest, resources: &mut ServiceResources<P>, ) -> Result<HkdfReply, Error>

Handles an extension request.
Source§

fn extension_request_serialized<P>( &mut self, core_ctx: &mut CoreContext, backend_ctx: &mut Self::Context, request: &SerdeExtension, resources: &mut ServiceResources<P>, ) -> Result<SerdeExtension, Error>
where P: Platform,

Handles an extension request and performs the necessary serialization and deserialization between request::SerdeExtension and Extension::Request as well as reply::SerdeExtension and Extension::Reply.
Source§

impl ExtensionImpl<HpkeExtension> for StagingBackend

Available on crate feature hpke only.
Source§

fn extension_request<P: Platform>( &mut self, core_ctx: &mut CoreContext, _backend_ctx: &mut Self::Context, request: &<HpkeExtension as Extension>::Request, resources: &mut ServiceResources<P>, ) -> Result<<HpkeExtension as Extension>::Reply, Error>

Handles an extension request.
Source§

fn extension_request_serialized<P>( &mut self, core_ctx: &mut CoreContext, backend_ctx: &mut Self::Context, request: &SerdeExtension, resources: &mut ServiceResources<P>, ) -> Result<SerdeExtension, Error>
where P: Platform,

Handles an extension request and performs the necessary serialization and deserialization between request::SerdeExtension and Extension::Request as well as reply::SerdeExtension and Extension::Reply.
Source§

impl ExtensionImpl<ManageExtension> for StagingBackend

Available on crate feature manage only.
Source§

fn extension_request<P: Platform>( &mut self, _core_ctx: &mut CoreContext, _backend_ctx: &mut Self::Context, request: &<ManageExtension as Extension>::Request, resources: &mut ServiceResources<P>, ) -> Result<<ManageExtension as Extension>::Reply, Error>

Handles an extension request.
Source§

fn extension_request_serialized<P>( &mut self, core_ctx: &mut CoreContext, backend_ctx: &mut Self::Context, request: &SerdeExtension, resources: &mut ServiceResources<P>, ) -> Result<SerdeExtension, Error>
where P: Platform,

Handles an extension request and performs the necessary serialization and deserialization between request::SerdeExtension and Extension::Request as well as reply::SerdeExtension and Extension::Reply.
Source§

impl ExtensionImpl<WrapKeyToFileExtension> for StagingBackend

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

fn extension_request<P: Platform>( &mut self, core_ctx: &mut CoreContext, _backend_ctx: &mut Self::Context, request: &WrapKeyToFileRequest, resources: &mut ServiceResources<P>, ) -> Result<WrapKeyToFileReply, Error>

Handles an extension request.
Source§

fn extension_request_serialized<P>( &mut self, core_ctx: &mut CoreContext, backend_ctx: &mut Self::Context, request: &SerdeExtension, resources: &mut ServiceResources<P>, ) -> Result<SerdeExtension, Error>
where P: Platform,

Handles an extension request and performs the necessary serialization and deserialization between request::SerdeExtension and Extension::Request as well as reply::SerdeExtension and Extension::Reply.

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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