Struct ldap_parser::ldap::LdapMessage[][src]

pub struct LdapMessage<'a> {
    pub message_id: MessageID,
    pub protocol_op: ProtocolOp<'a>,
    pub controls: Option<Vec<Control<'a>>>,
}
Expand description

An LDAP Message according to RFC4511

Fields

message_id: MessageID

Message Identifier (32-bits unsigned integer)

The messageID of a request MUST have a non-zero value different from the messageID of any other request in progress in the same LDAP session. The zero value is reserved for the unsolicited notification message.

protocol_op: ProtocolOp<'a>

The LDAP operation from this LDAP message

controls: Option<Vec<Control<'a>>>

Message controls (optional)

Controls provide a mechanism whereby the semantics and arguments of existing LDAP operations may be extended. One or more controls may be attached to a single LDAP message. A control only affects the semantics of the message it is attached to.

Implementations

Parse a single LDAP message and return a structure borrowing fields from the input buffer

See parse_ldap_message for examples.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.