pub struct HandoffAttemptInputs {
pub client_supports_handoff: bool,
pub service_policy_enabled: bool,
pub fd_pressure_disabled: bool,
pub backend_adopted_existing: bool,
}Expand description
Inputs that decide whether a specific client request may attempt handoff.
Fields§
§client_supports_handoff: boolWhether the client advertised support for staying on a handed-off pipe.
service_policy_enabled: boolWhether the matched service permits the handoff optimization.
fd_pressure_disabled: boolWhether fd/handle pressure has temporarily disabled handoff attempts.
backend_adopted_existing: boolWhether this backend was adopted after broker restart rather than spawned by this broker.
Implementations§
Source§impl HandoffAttemptInputs
impl HandoffAttemptInputs
Sourcepub fn new(
client_supports_handoff: bool,
service_policy_enabled: bool,
fd_pressure_disabled: bool,
) -> Self
pub fn new( client_supports_handoff: bool, service_policy_enabled: bool, fd_pressure_disabled: bool, ) -> Self
Build inputs for one handoff decision.
Sourcepub fn enabled() -> Self
pub fn enabled() -> Self
Inputs for the common path where both client and service permit handoff.
Sourcepub fn adopted_backend(client_supports_handoff: bool) -> Self
pub fn adopted_backend(client_supports_handoff: bool) -> Self
Inputs for an adopted backend that must use reconnect fallback.
Trait Implementations§
Source§impl Clone for HandoffAttemptInputs
impl Clone for HandoffAttemptInputs
Source§fn clone(&self) -> HandoffAttemptInputs
fn clone(&self) -> HandoffAttemptInputs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HandoffAttemptInputs
Source§impl Debug for HandoffAttemptInputs
impl Debug for HandoffAttemptInputs
impl Eq for HandoffAttemptInputs
Source§impl PartialEq for HandoffAttemptInputs
impl PartialEq for HandoffAttemptInputs
Source§fn eq(&self, other: &HandoffAttemptInputs) -> bool
fn eq(&self, other: &HandoffAttemptInputs) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HandoffAttemptInputs
Auto Trait Implementations§
impl Freeze for HandoffAttemptInputs
impl RefUnwindSafe for HandoffAttemptInputs
impl Send for HandoffAttemptInputs
impl Sync for HandoffAttemptInputs
impl Unpin for HandoffAttemptInputs
impl UnsafeUnpin for HandoffAttemptInputs
impl UnwindSafe for HandoffAttemptInputs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more