[][src]Struct krill::commons::remote::rfc6492::Message

pub struct Message { /* fields omitted */ }

This type represents all Provisioning Messages defined in RFC6492.

Note this is all very similar to, yet subtly different from, the Publication Messages defined in RFC8181.

Methods

impl Message[src]

pub fn unwrap(self) -> (Sender, Recipient, Content)[src]

pub fn sender(&self) -> &Handle[src]

pub fn recipient(&self) -> &Handle[src]

pub fn content(&self) -> &Content[src]

impl Message[src]

pub fn into_reply(self) -> Result<Res, Error>[src]

impl Message[src]

pub fn list(sender: Sender, recipient: Recipient) -> Self[src]

pub fn list_response(
    sender: Sender,
    recipient: Recipient,
    entitlements: Entitlements
) -> Self
[src]

pub fn issue(
    sender: Sender,
    recipient: Recipient,
    issuance_request: IssuanceRequest
) -> Self
[src]

pub fn issue_response(
    sender: Sender,
    recipient: Recipient,
    issuance_response: IssuanceResponse
) -> Self
[src]

pub fn revoke(
    sender: Sender,
    recipient: Recipient,
    revocation: RevocationRequest
) -> Self
[src]

pub fn revoke_response(
    sender: Sender,
    recipient: Recipient,
    revocation: RevocationResponse
) -> Self
[src]

pub fn not_performed_response(
    sender: Sender,
    recipient: Recipient,
    err: NotPerformedResponse
) -> Result<Self, Error>
[src]

impl Message[src]

pub fn decode<R>(reader: R) -> Result<Self, Error> where
    R: Read
[src]

Decodes an XML structure

pub fn from_signed_message(msg: &SignedMessage) -> Result<Message, Error>[src]

Parses the content of a SignedMessage as a Message.

pub fn encode<W: Write>(&self, target: &mut XmlWriter<W>) -> Result<(), Error>[src]

Encode into XML

pub fn encode_vec(&self) -> Vec<u8>[src]

Encodes to a Vec

pub fn into_bytes(self) -> Bytes[src]

Consumes the message and turns it into bytes

Trait Implementations

impl Clone for Message[src]

impl Eq for Message[src]

impl PartialEq<Message> for Message[src]

impl Debug for Message[src]

impl StructuralPartialEq for Message[src]

impl StructuralEq for Message[src]

Auto Trait Implementations

impl Send for Message

impl Sync for Message

impl Unpin for Message

impl UnwindSafe for Message

impl RefUnwindSafe for Message

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err