pub type StreamEndpointUpdateCallback = Box<dyn Fn(&StreamEndpoint) + Sync + Send>;