process server hello

This commit is contained in:
nora 2023-09-26 20:36:26 +02:00
parent 800ff88a6d
commit b3b5e4c4ae
4 changed files with 114 additions and 10 deletions

View file

@ -234,6 +234,12 @@ impl<T, Len: Value> From<Vec<T>> for List<T, Len> {
}
}
impl<T, Len> AsRef<[T]> for List<T, Len> {
fn as_ref(&self) -> &[T] {
self.0.as_ref()
}
}
impl<T: Debug, Len> Debug for List<T, Len> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_list().entries(self.0.iter()).finish()