Trait CratestackEnvelope
pub trait CratestackEnvelope:
Clone
+ Send
+ Sync
+ 'static {
// Required methods
fn request_content_type(&self) -> &'static str;
fn response_content_type(&self) -> &'static str;
fn open_request(
&self,
bytes: &[u8],
_ctx: &mut CratestackContext,
) -> Result<Vec<u8>, CratestackError>;
fn seal_response(
&self,
bytes: &[u8],
_ctx: &CratestackContext,
) -> Result<Vec<u8>, CratestackError>;
}Required Methods§
fn request_content_type(&self) -> &'static str
fn response_content_type(&self) -> &'static str
fn open_request( &self, bytes: &[u8], _ctx: &mut CratestackContext, ) -> Result<Vec<u8>, CratestackError>
fn seal_response( &self, bytes: &[u8], _ctx: &CratestackContext, ) -> Result<Vec<u8>, CratestackError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".