pub async fn write_frame<T: AsyncWrite + Unpin>(
    s: T,
    buffer: &[u8]
) -> Result<(), WriteError>