scatter_net/legacy/
terminate.rs

1use iroh::endpoint::VarInt;
2
3pub trait Terminate<E, R>
4where
5    E: Into<VarInt> + Send,
6    R: AsRef<[u8]> + Send,
7{
8    fn terminate(&self, error_code: E, reason: &R);
9}