pub struct Driver { /* private fields */ }Expand description
The driver loop. Owns the engine and all interface entries.
Implementations§
Source§impl Driver
impl Driver
Sourcepub fn new(
config: TransportConfig,
rx: EventReceiver,
tx: EventSender,
callbacks: Box<dyn Callbacks>,
) -> Self
pub fn new( config: TransportConfig, rx: EventReceiver, tx: EventSender, callbacks: Box<dyn Callbacks>, ) -> Self
Create a new driver.
Sourcepub fn set_probe_config(
&mut self,
addr: Option<SocketAddr>,
device: Option<String>,
)
pub fn set_probe_config( &mut self, addr: Option<SocketAddr>, device: Option<String>, )
Set the probe address and optional device for hole punching.
Auto Trait Implementations§
impl Freeze for Driver
impl !RefUnwindSafe for Driver
impl Send for Driver
impl !Sync for Driver
impl Unpin for Driver
impl !UnwindSafe for Driver
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