pub struct LdapMessage {
pub id: i64,
pub op: ProtocolOp,
pub controls: Vec<Control>,
}Expand description
One LDAPMessage off the wire.
Fields§
§id: i64Zero means an unsolicited notification (RFC 4511 §4.4) — the directory speaking without being asked, which in practice means it is about to close the connection.
op: ProtocolOp§controls: Vec<Control>Implementations§
Source§impl LdapMessage
impl LdapMessage
Sourcepub fn parse(bytes: &[u8]) -> Result<LdapMessage>
pub fn parse(bytes: &[u8]) -> Result<LdapMessage>
Parse exactly one message. The bytes must be one complete element, which
is what crate::ber::element_size is for.
Trait Implementations§
Source§impl Clone for LdapMessage
impl Clone for LdapMessage
Auto Trait Implementations§
impl Freeze for LdapMessage
impl RefUnwindSafe for LdapMessage
impl Send for LdapMessage
impl Sync for LdapMessage
impl Unpin for LdapMessage
impl UnsafeUnpin for LdapMessage
impl UnwindSafe for LdapMessage
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