pub enum ReferralPolicy {
Ignore,
Return,
Follow {
hop_limit: u8,
},
}Expand description
Controls how the server’s referral responses are handled.
In a search, a referral is listed in SearchResult::referrals under
Ignore and returned as Error::Referral under the other two policies;
it is never followed. For any other operation, a referral means the
server did not perform it, so it is returned as Error::Referral unless
the policy is Follow. A bind is never followed.
Variants§
Ignore
List referrals in search results and return them as errors otherwise.
Return
Return referrals as Error::Referral to the caller.
Follow
Automatically chase referrals up to hop_limit hops.
Implementations§
Trait Implementations§
Source§impl Clone for ReferralPolicy
impl Clone for ReferralPolicy
impl Copy for ReferralPolicy
Source§impl Debug for ReferralPolicy
impl Debug for ReferralPolicy
Source§impl Default for ReferralPolicy
impl Default for ReferralPolicy
impl Eq for ReferralPolicy
Source§impl PartialEq for ReferralPolicy
impl PartialEq for ReferralPolicy
impl StructuralPartialEq for ReferralPolicy
Auto Trait Implementations§
impl Forget for ReferralPolicy
impl Freeze for ReferralPolicy
impl Move for ReferralPolicy
impl RefUnwindSafe for ReferralPolicy
impl Send for ReferralPolicy
impl Sync for ReferralPolicy
impl Unpin for ReferralPolicy
impl UnsafeUnpin for ReferralPolicy
impl UnwindSafe for ReferralPolicy
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