pub struct Message { /* private fields */ }Expand description
This type represents all Provisioning Messages defined in RFC 6492.
Implementations§
Source§impl Message
§Data Access
impl Message
§Data Access
pub fn unpack(self) -> (SenderHandle, RecipientHandle, Payload)
pub fn sender(&self) -> &SenderHandle
pub fn recipient(&self) -> &RecipientHandle
pub fn payload(&self) -> &Payload
pub fn into_payload(self) -> Payload
pub fn is_list_response(&self) -> bool
Source§impl Message
§Constructing
impl Message
§Constructing
pub fn list(sender: SenderHandle, recipient: RecipientHandle) -> Self
pub fn list_response( sender: SenderHandle, recipient: RecipientHandle, resource_class_list_response: ResourceClassListResponse, ) -> Self
pub fn issue( sender: SenderHandle, recipient: RecipientHandle, issuance_request: IssuanceRequest, ) -> Self
pub fn issue_response( sender: SenderHandle, recipient: RecipientHandle, issuance_response: IssuanceResponse, ) -> Self
pub fn revoke( sender: SenderHandle, recipient: RecipientHandle, revocation_request: RevocationRequest, ) -> Self
pub fn revoke_response( sender: SenderHandle, recipient: RecipientHandle, revocation_response: RevocationResponse, ) -> Self
pub fn not_performed_response( sender: SenderHandle, recipient: RecipientHandle, not_performed_response: NotPerformedResponse, ) -> Result<Self, Error>
Source§impl Message
§Encoding to XML
impl Message
§Encoding to XML
Sourcepub fn write_xml(&self, writer: &mut impl Write) -> Result<(), Error>
pub fn write_xml(&self, writer: &mut impl Write) -> Result<(), Error>
Writes the Message’s XML representation.
Sourcepub fn to_xml_string(&self) -> String
pub fn to_xml_string(&self) -> String
Writes the Message’s XML representation to a new String.
Sourcepub fn to_xml_bytes(&self) -> Bytes
pub fn to_xml_bytes(&self) -> Bytes
Writes the Message’s XML representation to a new Bytes
Trait Implementations§
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl !Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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