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

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

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

impl<'a> LdapMessage<'a>[src]

pub fn parse(i: &[u8]) -> Result<'_, LdapMessage<'_>>[src]

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

See parse_ldap_message for examples.

Trait Implementations

impl<'a> Debug for LdapMessage<'a>[src]

impl<'a> PartialEq<LdapMessage<'a>> for LdapMessage<'a>[src]

impl<'a> StructuralPartialEq for LdapMessage<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for LdapMessage<'a>

impl<'a> Send for LdapMessage<'a>

impl<'a> Sync for LdapMessage<'a>

impl<'a> Unpin for LdapMessage<'a>

impl<'a> UnwindSafe for LdapMessage<'a>

Blanket Implementations

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

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

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

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

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

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

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

type Error = Infallible

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.