mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-21 08:16:32 +00:00
Move smoltcp-related code to bigtcp
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
9fba9445bd
commit
67d3682116
11
kernel/libs/aster-bigtcp/src/socket/event.rs
Normal file
11
kernel/libs/aster-bigtcp/src/socket/event.rs
Normal file
@ -0,0 +1,11 @@
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
/// A observer that will be invoked whenever events occur on the socket.
|
||||
pub trait SocketEventObserver: Send + Sync {
|
||||
/// Notifies that events occurred on the socket.
|
||||
fn on_events(&self);
|
||||
}
|
||||
|
||||
impl SocketEventObserver for () {
|
||||
fn on_events(&self) {}
|
||||
}
|
Reference in New Issue
Block a user