dope-net 0.33.0

Owned network transports for dope
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::{marker, mem};

use dope_core::driver::route::{self, Identity, KeyTag};

#[derive(Clone, Copy)]
/// Driver-branded proof for receive paths without stored credit.
pub struct Direct<'d, ID: Identity> {
    proof: marker::PhantomData<route::Target<'d, ID>>,
}

impl<'d, ID: Identity> Direct<'d, ID> {
    pub(crate) const NEW: Self = Self {
        proof: marker::PhantomData,
    };
}

const _: () = assert!(mem::size_of::<Direct<'static, KeyTag<0>>>() == 0);