Struct EncryptMWImpl

Source
pub struct EncryptMWImpl<E>(/* private fields */);

Trait Implementations§

Source§

impl<E: Endpoint> Endpoint for EncryptMWImpl<E>

Source§

type Output = Response

Represents the response of the endpoint.
Source§

async fn call(&self, req: Request) -> Result<Self::Output>

Get the response to the request.
Source§

fn get_response(&self, req: Request) -> impl Future<Output = Response> + Send

Get the response to the request and return a Response. Read more

Auto Trait Implementations§

§

impl<E> Freeze for EncryptMWImpl<E>
where E: Freeze,

§

impl<E> RefUnwindSafe for EncryptMWImpl<E>
where E: RefUnwindSafe,

§

impl<E> Send for EncryptMWImpl<E>
where E: Send,

§

impl<E> Sync for EncryptMWImpl<E>
where E: Sync,

§

impl<E> Unpin for EncryptMWImpl<E>
where E: Unpin,

§

impl<E> UnwindSafe for EncryptMWImpl<E>
where E: UnwindSafe,

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<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

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> Chain<T> for T

Source§

fn len(&self) -> usize

The number of items that this chain link consists of.
Source§

fn append_to(self, v: &mut Vec<T>)

Append the elements in this link to the chain.
Source§

impl<T> EndpointExt for T
where T: IntoEndpoint,

Source§

fn boxed<'a>( self, ) -> Box<dyn DynEndpoint<Output = <Self::Endpoint as Endpoint>::Output> + 'a>
where Self: Sized + 'a,

Wrap the endpoint in a Box.
Source§

fn with<T>(self, middleware: T) -> <T as Middleware<Self::Endpoint>>::Output
where T: Middleware<Self::Endpoint>, Self: Sized,

Use middleware to transform this endpoint. Read more
Source§

fn with_if<T>( self, enable: bool, middleware: T, ) -> EitherEndpoint<Self, <T as Middleware<Self::Endpoint>>::Output>
where T: Middleware<Self::Endpoint>, Self: Sized,

if enable is true then use middleware to transform this endpoint. Read more
Source§

fn data<T>(self, data: T) -> AddDataEndpoint<Self::Endpoint, T>
where T: Clone + Send + Sync + 'static, Self: Sized,

Attach a state data to the endpoint, similar to with(AddData(T)). Read more
Source§

fn data_opt<T>( self, data: Option<T>, ) -> EitherEndpoint<AddDataEndpoint<Self::Endpoint, T>, Self>
where T: Clone + Send + Sync + 'static, Self: Sized,

if data is Some(T) then attach the value to the endpoint.
Source§

fn before<F, Fut>(self, f: F) -> Before<Self, F>
where F: Fn(Request) -> Fut + Send + Sync, Fut: Future<Output = Result<Request, Error>> + Send, Self: Sized,

Maps the request of this endpoint. Read more
Source§

fn after<F, Fut, T>(self, f: F) -> After<Self::Endpoint, F>
where F: Fn(Result<<Self::Endpoint as Endpoint>::Output, Error>) -> Fut + Send + Sync, Fut: Future<Output = Result<T, Error>> + Send, T: IntoResponse, Self: Sized,

Maps the output of this endpoint. Read more
Source§

fn around<F, Fut, R>(self, f: F) -> Around<Self::Endpoint, F>
where F: Fn(Arc<Self::Endpoint>, Request) -> Fut + Send + Sync + 'static, Fut: Future<Output = Result<R, Error>> + Send + 'static, R: IntoResponse, Self: Sized,

Maps the request and response of this endpoint. Read more
Source§

fn map_to_response(self) -> MapToResponse<Self::Endpoint>
where Self: Sized,

Convert the output of this endpoint into a response. Response. Read more
Source§

fn to_response(self) -> ToResponse<Self::Endpoint>
where Self: Sized,

Convert the output of this endpoint into a response. Response. Read more
Source§

fn map<F, Fut, R, R2>(self, f: F) -> Map<Self::Endpoint, F>
where F: Fn(R) -> Fut + Send + Sync, Fut: Future<Output = R2> + Send, R: IntoResponse, R2: IntoResponse, Self: Sized, Self::Endpoint: Sized + Endpoint<Output = R>,

Maps the response of this endpoint. Read more
Source§

fn and_then<F, Fut, R, R2>(self, f: F) -> AndThen<Self::Endpoint, F>
where F: Fn(R) -> Fut + Send + Sync, Fut: Future<Output = Result<R2, Error>> + Send, R: IntoResponse, R2: IntoResponse, Self: Sized, Self::Endpoint: Sized + Endpoint<Output = R>,

Calls f if the result is Ok, otherwise returns the Err value of self. Read more
Source§

fn catch_all_error<F, Fut, R>(self, f: F) -> CatchAllError<Self, F, R>
where F: Fn(Error) -> Fut + Send + Sync, Fut: Future<Output = R> + Send, R: IntoResponse + Send, Self: Sized + Sync,

Catch all errors and convert it into a response. Read more
Source§

fn catch_error<F, Fut, R, ErrType>( self, f: F, ) -> CatchError<Self, F, R, ErrType>
where F: Fn(ErrType) -> Fut + Send + Sync, Fut: Future<Output = R> + Send, R: IntoResponse + Send + Sync, ErrType: Error + Send + Sync + 'static, Self: Sized,

Catch the specified type of error and convert it into a response. Read more
Source§

fn inspect_all_err<F>(self, f: F) -> InspectAllError<Self, F>
where F: Fn(&Error) + Send + Sync, Self: Sized,

Does something with each error. Read more
Source§

fn inspect_err<F, ErrType>(self, f: F) -> InspectError<Self, F, ErrType>
where F: Fn(&ErrType) + Send + Sync, ErrType: Error + Send + Sync + 'static, Self: Sized,

Does something with each specified error type. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> IntoEndpoint for T
where T: Endpoint,

Source§

type Endpoint = T

Represents the endpoint type.
Source§

fn into_endpoint(self) -> <T as IntoEndpoint>::Endpoint

Converts this object into endpoint.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
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

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,