pub struct CoapEstHandler { /* private fields */ }Expand description
EST handler implementation that bridges CoAP requests to shared enrollment logic.
Constructed with a reference to the application state and passed
to CoapDtlsServer::run()
at startup.
Implementations§
Trait Implementations§
Source§impl EstHandler for CoapEstHandler
impl EstHandler for CoapEstHandler
Source§fn handle(
&self,
operation: EstOperation,
label: Option<&str>,
payload: &[u8],
_content_format: Option<u16>,
client_cert: Option<&ClientCertInfo>,
) -> Result<EstResponse, CoapError>
fn handle( &self, operation: EstOperation, label: Option<&str>, payload: &[u8], _content_format: Option<u16>, client_cert: Option<&ClientCertInfo>, ) -> Result<EstResponse, CoapError>
Processes an EST operation and returns the response. Read more
Auto Trait Implementations§
impl Freeze for CoapEstHandler
impl !RefUnwindSafe for CoapEstHandler
impl Send for CoapEstHandler
impl Sync for CoapEstHandler
impl Unpin for CoapEstHandler
impl UnsafeUnpin for CoapEstHandler
impl !UnwindSafe for CoapEstHandler
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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