pub enum ProtocolOp {
BindResponse {
result: LdapResult,
server_sasl_credentials: Option<Vec<u8>>,
},
SearchResultEntry(SearchEntry),
SearchResultReference(Vec<String>),
SearchResultDone(LdapResult),
ExtendedResponse {
result: LdapResult,
name: Option<String>,
value: Option<Vec<u8>>,
},
IntermediateResponse,
Unrecognised {
tag: u8,
},
}Expand description
A decoded protocol operation, in the shapes this client asks for.
Variants§
BindResponse
SearchResultEntry(SearchEntry)
SearchResultReference(Vec<String>)
SearchResultDone(LdapResult)
ExtendedResponse
IntermediateResponse
Unrecognised
Something this client never asked for. The tag is kept so the error can name it; the contents are dropped, because guessing at the shape of a message you did not request is how a parser gets surprised.
Implementations§
Source§impl ProtocolOp
impl ProtocolOp
Trait Implementations§
Source§impl Clone for ProtocolOp
impl Clone for ProtocolOp
Auto Trait Implementations§
impl Freeze for ProtocolOp
impl RefUnwindSafe for ProtocolOp
impl Send for ProtocolOp
impl Sync for ProtocolOp
impl Unpin for ProtocolOp
impl UnsafeUnpin for ProtocolOp
impl UnwindSafe for ProtocolOp
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