pub enum ReferralPolicy {
Ignore,
Return,
Follow {
hop_limit: u8,
},
}Expand description
Controls how the server’s referral responses are handled.
Variants§
Ignore
Silently ignore referrals (treat as success).
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
Source§fn clone(&self) -> ReferralPolicy
fn clone(&self) -> ReferralPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReferralPolicy
impl Debug for ReferralPolicy
Source§impl Default for ReferralPolicy
impl Default for ReferralPolicy
Source§fn default() -> ReferralPolicy
fn default() -> ReferralPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for ReferralPolicy
impl PartialEq for ReferralPolicy
impl Copy for ReferralPolicy
impl Eq for ReferralPolicy
impl StructuralPartialEq for ReferralPolicy
Auto Trait Implementations§
impl Freeze 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