pub enum ServiceLaunchEventType {
LOWPOWERSTARTOVER,
HIGHPOWERSTARTOVER,
BACKTOLOWERPOWEROVER,
HIGHPOWERRECOVEROVER,
SINGLESERVICESTARTED,
SINGLESERVICESTOPPED,
RESETLAYER1SERVICES,
LAYER1SERVICESRESETOVER,
}
Expand description
The event type about service start/stop.
Variants
LOWPOWERSTARTOVER
All lower power services started.
HIGHPOWERSTARTOVER
All high power services started.
BACKTOLOWERPOWEROVER
Back to low power from high power mode over.
HIGHPOWERRECOVEROVER
High power recovered, happens when layer1 restart.
SINGLESERVICESTARTED
A Service connected to the broker, it’s ready to process messages.
SINGLESERVICESTOPPED
A Service been removed from the broker.
RESETLAYER1SERVICES
Only used for Layer1Service to tell layer0 to reset all layer1 services state
LAYER1SERVICESRESETOVER
Only used for layer0 to tell Layer1Service that all layer1 services state reset over
Implementations
sourceimpl ServiceLaunchEventType
impl ServiceLaunchEventType
pub fn write_to_out_protocol(
&self,
o_prot: &mut dyn TOutputProtocol
) -> Result<()>
pub fn read_from_in_protocol(
i_prot: &mut dyn TInputProtocol
) -> Result<ServiceLaunchEventType>
Trait Implementations
sourceimpl Clone for ServiceLaunchEventType
impl Clone for ServiceLaunchEventType
sourcefn clone(&self) -> ServiceLaunchEventType
fn clone(&self) -> ServiceLaunchEventType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ServiceLaunchEventType
impl Debug for ServiceLaunchEventType
sourceimpl Hash for ServiceLaunchEventType
impl Hash for ServiceLaunchEventType
sourceimpl Ord for ServiceLaunchEventType
impl Ord for ServiceLaunchEventType
sourcefn cmp(&self, other: &ServiceLaunchEventType) -> Ordering
fn cmp(&self, other: &ServiceLaunchEventType) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ServiceLaunchEventType> for ServiceLaunchEventType
impl PartialEq<ServiceLaunchEventType> for ServiceLaunchEventType
sourcefn eq(&self, other: &ServiceLaunchEventType) -> bool
fn eq(&self, other: &ServiceLaunchEventType) -> bool
sourceimpl PartialOrd<ServiceLaunchEventType> for ServiceLaunchEventType
impl PartialOrd<ServiceLaunchEventType> for ServiceLaunchEventType
sourcefn partial_cmp(&self, other: &ServiceLaunchEventType) -> Option<Ordering>
fn partial_cmp(&self, other: &ServiceLaunchEventType) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl TryFrom<i32> for ServiceLaunchEventType
impl TryFrom<i32> for ServiceLaunchEventType
impl Copy for ServiceLaunchEventType
impl Eq for ServiceLaunchEventType
impl StructuralEq for ServiceLaunchEventType
impl StructuralPartialEq for ServiceLaunchEventType
Auto Trait Implementations
impl RefUnwindSafe for ServiceLaunchEventType
impl Send for ServiceLaunchEventType
impl Sync for ServiceLaunchEventType
impl Unpin for ServiceLaunchEventType
impl UnwindSafe for ServiceLaunchEventType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more