pub struct Offer { /* private fields */ }Expand description
A channel offer.
Implementations§
Source§impl Offer
impl Offer
Sourcepub async fn new(
driver: impl Spawn,
bus: &dyn ParentBus,
offer_params: OfferParams,
) -> Result<Self>
pub async fn new( driver: impl Spawn, bus: &dyn ParentBus, offer_params: OfferParams, ) -> Result<Self>
Offers a new channel.
Sourcepub async fn wait_for_open(
&mut self,
driver: &(impl Driver + ?Sized),
) -> Result<OpeningChannel, Error>
pub async fn wait_for_open( &mut self, driver: &(impl Driver + ?Sized), ) -> Result<OpeningChannel, Error>
Accepts a channel open request from the guest.
Auto Trait Implementations§
impl Freeze for Offer
impl !RefUnwindSafe for Offer
impl Send for Offer
impl Sync for Offer
impl Unpin for Offer
impl !UnwindSafe 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