pub struct Offer {
pub realm: [u8; 32],
pub procedure: String,
pub handler: Option<Handler>,
pub stream: Option<StreamOffer>,
}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.
Fields§
§realm: [u8; 32]§procedure: String§handler: Option<Handler>§stream: Option<StreamOffer>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