pub struct DeviceActor {
pub receiver: Receiver<DeviceActorRequest>,
pub device_type: DeviceType,
}Fields§
§receiver: Receiver<DeviceActorRequest>§device_type: DeviceTypeImplementations§
Source§impl DeviceActor
impl DeviceActor
pub async fn run(self) -> Self
pub async fn try_upgrade(&mut self) -> Result<PingAnswer, DeviceError>
pub fn new(device: DeviceType, size: usize) -> (Self, DeviceActorHandler)
Auto Trait Implementations§
impl Freeze for DeviceActor
impl !RefUnwindSafe for DeviceActor
impl Send for DeviceActor
impl Sync for DeviceActor
impl Unpin for DeviceActor
impl !UnwindSafe for DeviceActor
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