pub struct SessionTarget {
pub cluster_id: String,
pub backend_id: Option<String>,
pub address: Option<SocketAddr>,
}Expand description
The backend connections a CloseSessions request selects: those to
cluster_id, narrowed by backend_id and address when they are set.
Fields§
§cluster_id: String§backend_id: Option<String>§address: Option<SocketAddr>Implementations§
Source§impl SessionTarget
impl SessionTarget
Sourcepub fn matches(
&self,
cluster_id: &str,
backend_id: Option<&str>,
address: Option<SocketAddr>,
) -> bool
pub fn matches( &self, cluster_id: &str, backend_id: Option<&str>, address: Option<SocketAddr>, ) -> bool
Whether a backend connection to backend_id at address in
cluster_id is one this target selects. Every field the target sets
must match; a connection that does not know a field the target sets
does not match.
Trait Implementations§
Source§impl Clone for SessionTarget
impl Clone for SessionTarget
Source§impl Debug for SessionTarget
impl Debug for SessionTarget
impl Eq for SessionTarget
Source§impl From<&CloseSessions> for SessionTarget
impl From<&CloseSessions> for SessionTarget
Source§fn from(request: &CloseSessions) -> Self
fn from(request: &CloseSessions) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SessionTarget
impl PartialEq for SessionTarget
impl StructuralPartialEq for SessionTarget
Auto Trait Implementations§
impl Freeze for SessionTarget
impl RefUnwindSafe for SessionTarget
impl Send for SessionTarget
impl Sync for SessionTarget
impl Unpin for SessionTarget
impl UnsafeUnpin for SessionTarget
impl UnwindSafe for SessionTarget
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.