dope-net 0.28.1

Owned network transports for dope
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::convert::Infallible;

use crate::wire::send::{self, Payload};

/// No payload; the prepared value still carries the storage borrow lifetime.
#[derive(Clone, Copy, Default)]
pub struct Empty;

impl<'a> Payload<'a> for Empty {
    fn select(&self) -> Option<impl send::raw::Ready<'a>> {
        None::<Infallible>
    }
}