pub enum ServiceAction {
NotHandled,
Consumed {
messages_to_send: Vec<OutboundMessage>,
events_to_emit: Vec<ServiceEvent>,
},
}Expand description
Action returned from handling an incoming service message.
Variants§
NotHandled
The message was not a service message; caller should continue processing.
Consumed
The message was consumed as a service message.
Fields
§
messages_to_send: Vec<OutboundMessage>Messages to send to peers.
§
events_to_emit: Vec<ServiceEvent>Events to emit to the application.
Auto Trait Implementations§
impl Freeze for ServiceAction
impl RefUnwindSafe for ServiceAction
impl Send for ServiceAction
impl Sync for ServiceAction
impl Unpin for ServiceAction
impl UnsafeUnpin for ServiceAction
impl UnwindSafe for ServiceAction
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