Struct cfx_stratum::SocketMetadata
source · pub struct SocketMetadata { /* private fields */ }
Implementations§
source§impl SocketMetadata
impl SocketMetadata
pub fn addr(&self) -> &SocketAddr
Trait Implementations§
source§impl Clone for SocketMetadata
impl Clone for SocketMetadata
source§fn clone(&self) -> SocketMetadata
fn clone(&self) -> SocketMetadata
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 moresource§impl Default for SocketMetadata
impl Default for SocketMetadata
source§impl MetaExtractor<SocketMetadata> for PeerMetaExtractor
impl MetaExtractor<SocketMetadata> for PeerMetaExtractor
source§fn extract(&self, context: &RequestContext) -> SocketMetadata
fn extract(&self, context: &RequestContext) -> SocketMetadata
Extracts metadata from request context
impl Metadata for SocketMetadata
Auto Trait Implementations§
impl !RefUnwindSafe for SocketMetadata
impl Send for SocketMetadata
impl Sync for SocketMetadata
impl Unpin for SocketMetadata
impl !UnwindSafe for SocketMetadata
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