pub struct Offer {
pub realm: [u8; 32],
pub procedure: String,
pub handler: Option<Handler>,
pub stream: Option<StreamOffer>,
pub confidential: Confidentiality,
}Expand description
A procedure the node serves: its realm, which the pool must pin a key for
unless the procedure is in the node’s own namespace, its name, and
exactly one of a unary handler and a stream offer, and how it takes its
requests: with super::Opts::kem_advertise its advertisement names the
node’s KEM key unless confidential is off, and sealed requests are
answered sealed.
Fields§
§realm: [u8; 32]§procedure: String§handler: Option<Handler>§stream: Option<StreamOffer>§confidential: ConfidentialityImplementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Offer
impl !UnwindSafe for Offer
impl Freeze for Offer
impl Send for Offer
impl Sync for Offer
impl Unpin for Offer
impl UnsafeUnpin for Offer
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