Skip to main content

SocketMetadata

Trait SocketMetadata 

Source
pub trait SocketMetadata<CC>
where CC: ?Sized,
{ // Required methods fn socket_info(&self, core_ctx: &mut CC) -> SocketInfo; fn marks(&self, _core_ctx: &mut CC) -> Marks; }
Expand description

Trait that provides basic socket information for types that carry a socket ID.

Required Methods§

Source

fn socket_info(&self, core_ctx: &mut CC) -> SocketInfo

Returns the SocketInfo for the socket.

Source

fn marks(&self, _core_ctx: &mut CC) -> Marks

Returns Socket Marks.

Implementations on Foreign Types§

Source§

impl<T, O, CC> SocketMetadata<CC> for EitherStack<T, O>
where CC: ?Sized, T: SocketMetadata<CC>, O: SocketMetadata<CC>,

Source§

fn socket_info(&self, core_ctx: &mut CC) -> SocketInfo

Source§

fn marks(&self, core_ctx: &mut CC) -> Marks

Implementors§