#[repr(u8)]pub enum ContentType {
RpcResponse = 1,
EndpointInfo = 2,
Metrics = 100,
AppData = 101,
WorkerAttestation = 102,
WorkerDescription = 103,
SessionUpdate = 104,
}Expand description
The content type of a signed message.
Variants§
RpcResponse = 1
A response to an RPC request.
EndpointInfo = 2
An endpoint info message.
Metrics = 100
Metrics of applications.
AppData = 101
App requested worker signed data.
WorkerAttestation = 102
Worker attestation.
WorkerDescription = 103
Worker description.
SessionUpdate = 104
Worker session update.
Implementations§
Source§impl ContentType
impl ContentType
Sourcepub fn wrap_message(&self, message: impl AsRef<[u8]>) -> Vec<u8> ⓘ
pub fn wrap_message(&self, message: impl AsRef<[u8]>) -> Vec<u8> ⓘ
Wrap a message with the content type to create a signed message.
Sourcepub fn wrap_message_iter(
&self,
message: impl IntoIterator<Item = u8>,
) -> Vec<u8> ⓘ
pub fn wrap_message_iter( &self, message: impl IntoIterator<Item = u8>, ) -> Vec<u8> ⓘ
Wrap a message with the content type to create a signed message.
Trait Implementations§
Source§impl Clone for ContentType
impl Clone for ContentType
Source§fn clone(&self) -> ContentType
fn clone(&self) -> ContentType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContentType
impl Debug for ContentType
impl Copy for ContentType
Auto Trait Implementations§
impl Freeze for ContentType
impl RefUnwindSafe for ContentType
impl Send for ContentType
impl Sync for ContentType
impl Unpin for ContentType
impl UnwindSafe for ContentType
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