pub struct OutboundReservation<'d, const ID: u8> { /* private fields */ }Implementations§
Source§impl<'d, const ID: u8> OutboundReservation<'d, ID>
impl<'d, const ID: u8> OutboundReservation<'d, ID>
Sourcepub fn bind(
&self,
target: Target<'d, KeyTag<ID>>,
) -> Option<Bound<'d, KeyTag<ID>, SocketSlot<'d>>>
pub fn bind( &self, target: Target<'d, KeyTag<ID>>, ) -> Option<Bound<'d, KeyTag<ID>, SocketSlot<'d>>>
Binds one local pool target to its physical descriptor slot.
A target from another route cannot acquire this reservation:
ⓘ
use dope_core::driver::{ops::OutboundReservation, route::{KeyTag, Target}};
fn cross_route<'d>(
reservation: &OutboundReservation<'d, 1>,
target: Target<'d, KeyTag<2>>,
) {
let _ = reservation.bind(target);
}Auto Trait Implementations§
impl<'d, const ID: u8> !RefUnwindSafe for OutboundReservation<'d, ID>
impl<'d, const ID: u8> !Send for OutboundReservation<'d, ID>
impl<'d, const ID: u8> !Sync for OutboundReservation<'d, ID>
impl<'d, const ID: u8> !UnwindSafe for OutboundReservation<'d, ID>
impl<'d, const ID: u8> Freeze for OutboundReservation<'d, ID>
impl<'d, const ID: u8> Unpin for OutboundReservation<'d, ID>
impl<'d, const ID: u8> UnsafeUnpin for OutboundReservation<'d, ID>
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