pub struct Opening { /* private fields */ }Expand description
A synth being opened: the device inquiry is out, the answer awaited
without blocking (Opening::poll from a pumping loop).
Implementations§
Source§impl Opening
impl Opening
Sourcepub fn open(c: &Candidate) -> Result<Opening, Error>
pub fn open(c: &Candidate) -> Result<Opening, Error>
Open a candidate’s port and send the inquiry.
Sourcepub fn start(
driver: &'static dyn Driver,
link: Box<dyn Link>,
port_name: String,
) -> Result<Opening, Error>
pub fn start( driver: &'static dyn Driver, link: Box<dyn Link>, port_name: String, ) -> Result<Opening, Error>
Send the inquiry on link.
pub fn driver(&self) -> &'static dyn Driver
pub fn port_name(&self) -> &str
Sourcepub fn ring_on_input(&mut self, bell: Sender<()>)
pub fn ring_on_input(&mut self, bell: Sender<()>)
Ring bell when the synth answers.
Sourcepub fn poll(self, now: Instant) -> Opened
pub fn poll(self, now: Instant) -> Opened
Read what has arrived: the device once recognised, a failure, or
still waiting (come back by Opening::deadline at the latest).
Auto Trait Implementations§
impl !RefUnwindSafe for Opening
impl !Sync for Opening
impl !UnwindSafe for Opening
impl Freeze for Opening
impl Send for Opening
impl Unpin for Opening
impl UnsafeUnpin for Opening
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