Struct pingora_pool::ConnectionMeta
source · pub struct ConnectionMeta {
pub key: u64,
pub id: i32,
}Expand description
the metadata of a connection
Fields§
§key: u64The group key. All connections under the same key are considered the same for connection reuse.
id: i32The unique ID of a connection.
Implementations§
source§impl ConnectionMeta
impl ConnectionMeta
sourcepub fn new(key: u64, id: i32) -> Self
pub fn new(key: u64, id: i32) -> Self
Create a new ConnectionMeta
Trait Implementations§
source§impl Clone for ConnectionMeta
impl Clone for ConnectionMeta
source§fn clone(&self) -> ConnectionMeta
fn clone(&self) -> ConnectionMeta
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for ConnectionMeta
impl Send for ConnectionMeta
impl Sync for ConnectionMeta
impl Unpin for ConnectionMeta
impl UnwindSafe for ConnectionMeta
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