pub struct DeviceSender<'controller> { /* private fields */ }Expand description
A device sender.
It generates multiple unique request senders for a device.
Implementations§
Source§impl DeviceSender<'_>
impl DeviceSender<'_>
Sourcepub fn request(&self, route: &str) -> Result<RequestSender<'_>, Error>
pub fn request(&self, route: &str) -> Result<RequestSender<'_>, Error>
Builds a RequestSender for the given route.
The generated request sender is tightly bound to the device sender and cannot function independently.
§Errors
An error is returned if the given route does not exist.
Trait Implementations§
Source§impl<'controller> Debug for DeviceSender<'controller>
impl<'controller> Debug for DeviceSender<'controller>
Source§impl<'controller> PartialEq for DeviceSender<'controller>
impl<'controller> PartialEq for DeviceSender<'controller>
impl<'controller> StructuralPartialEq for DeviceSender<'controller>
Auto Trait Implementations§
impl<'controller> Freeze for DeviceSender<'controller>
impl<'controller> RefUnwindSafe for DeviceSender<'controller>
impl<'controller> Send for DeviceSender<'controller>
impl<'controller> Sync for DeviceSender<'controller>
impl<'controller> Unpin for DeviceSender<'controller>
impl<'controller> UnwindSafe for DeviceSender<'controller>
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