pub struct Offer {
pub realm: [u8; 32],
pub procedure: String,
pub handler: Option<Handler>,
pub stream: Option<StreamOffer>,
pub realm_key: Option<Vec<u8>>,
}Expand description
A procedure to serve: its realm and name, exactly one of a unary handler and a stream offer, and, for an org procedure, the realm key the org directory must be signed with, as the realm’s members pin it; a procedure in this node’s own namespace needs none.
Fields§
§realm: [u8; 32]§procedure: String§handler: Option<Handler>§stream: Option<StreamOffer>§realm_key: Option<Vec<u8>>Implementations§
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