pub struct DeviceClient<U: UnifiedType> { /* private fields */ }Implementations§
Source§impl<U: UnifiedType> DeviceClient<U>
impl<U: UnifiedType> DeviceClient<U>
pub fn new( node: &Node<U>, config: DeviceClientConfig, name: String, fail_map: FailureConfigMap, subscribers: Vec<LocalRef<Manager>>, ) -> LocalRef<DeviceClientCmd>
Trait Implementations§
Source§impl<U: UnifiedType> Actor<U, DeviceClientMsg<U>> for DeviceClient<U>
impl<U: UnifiedType> Actor<U, DeviceClientMsg<U>> for DeviceClient<U>
Source§fn pre_start<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ctx: &'life1 ActorContext<U, DeviceClientMsg<U>>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn pre_start<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ctx: &'life1 ActorContext<U, DeviceClientMsg<U>>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
A setup function. This is called before the actor starts receiving messages.
Source§fn recv<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ctx: &'life1 ActorContext<U, DeviceClientMsg<U>>,
msg: DeviceClientMsg<U>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn recv<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ctx: &'life1 ActorContext<U, DeviceClientMsg<U>>,
msg: DeviceClientMsg<U>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Called whenever the actor receives a message.
Source§fn post_stop<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_: &'life1 ActorContext<U, S>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn post_stop<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_: &'life1 ActorContext<U, S>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Called when the actor terminates gracefully and has stopped receiving messages.
Auto Trait Implementations§
impl<U> Freeze for DeviceClient<U>where
U: Freeze,
impl<U> !RefUnwindSafe for DeviceClient<U>
impl<U> Send for DeviceClient<U>
impl<U> Sync for DeviceClient<U>
impl<U> Unpin for DeviceClient<U>where
U: Unpin,
impl<U> UnsafeUnpin for DeviceClient<U>where
U: UnsafeUnpin,
impl<U> !UnwindSafe for DeviceClient<U>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.