pub struct CommissionedGateway { /* private fields */ }Expand description
The administrator’s signing identity and commissioned gateway for one job target.
Implementations§
Source§impl CommissionedGateway
impl CommissionedGateway
Sourcepub fn load(bundle: &Path, recipient: [u8; 9]) -> Result<Self>
pub fn load(bundle: &Path, recipient: [u8; 9]) -> Result<Self>
Load the administrator’s TLS identity, expected gateway leaf and wake-up key.
Sourcepub fn peer_fingerprint(&self) -> [u8; 32]
pub fn peer_fingerprint(&self) -> [u8; 32]
The SHA-256 leaf fingerprint the TLS handshake enforces for this instance.
Dispatch using a listener shared by independently commissioned gateways.
Sourcepub async fn bind(
&self,
listen: SocketAddr,
wakeup: SocketAddr,
) -> Result<ReadExchange<'_>>
pub async fn bind( &self, listen: SocketAddr, wakeup: SocketAddr, ) -> Result<ReadExchange<'_>>
Bind the callback listener before dispatching. The caller can now report the
port and reserve a fresh wake-up timestamp before calling ReadExchange::read.
Auto Trait Implementations§
impl Freeze for CommissionedGateway
impl RefUnwindSafe for CommissionedGateway
impl Send for CommissionedGateway
impl Sync for CommissionedGateway
impl Unpin for CommissionedGateway
impl UnsafeUnpin for CommissionedGateway
impl UnwindSafe for CommissionedGateway
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more