pub struct K2VApiServer { /* private fields */ }Implementations§
Source§impl K2VApiServer
impl K2VApiServer
Trait Implementations§
Source§impl ApiHandler for K2VApiServer
impl ApiHandler for K2VApiServer
const API_NAME: &'static str = "k2v"
const API_NAME_DISPLAY: &'static str = "K2V"
type Endpoint = K2VApiEndpoint
type Error = Error
fn parse_endpoint( &self, req: &Request<IncomingBody>, ) -> Result<K2VApiEndpoint, Error>
async fn handle( &self, req: Request<IncomingBody>, endpoint: K2VApiEndpoint, ) -> Result<Response<ResBody>, Error>
Source§fn key_id_from_request(&self, req: &Request<IncomingBody>) -> Option<String>
fn key_id_from_request(&self, req: &Request<IncomingBody>) -> Option<String>
Returns the key id used to authenticate this request. The ID returned must be safe to
log.
Auto Trait Implementations§
impl Freeze for K2VApiServer
impl !RefUnwindSafe for K2VApiServer
impl Send for K2VApiServer
impl Sync for K2VApiServer
impl Unpin for K2VApiServer
impl UnsafeUnpin for K2VApiServer
impl !UnwindSafe for K2VApiServer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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