pub struct SignalMessage { /* private fields */ }Expand description
Message for signal entry point.
Implementations§
Source§impl SignalMessage
impl SignalMessage
Sourcepub fn new(origin_msg_id: MessageId, code: SignalCode) -> Self
pub fn new(origin_msg_id: MessageId, code: SignalCode) -> Self
Creates a new SignalMessage.
Sourcepub fn into_message(
self,
origin_msg_id: MessageId,
destination: ActorId,
) -> Message
pub fn into_message( self, origin_msg_id: MessageId, destination: ActorId, ) -> Message
Convert SignalMessage into Message.
Sourcepub fn into_dispatch(
self,
origin_msg_id: MessageId,
destination: ActorId,
) -> Dispatch
pub fn into_dispatch( self, origin_msg_id: MessageId, destination: ActorId, ) -> Dispatch
Convert SignalMessage into Dispatch.
Sourcepub fn code(&self) -> SignalCode
pub fn code(&self) -> SignalCode
Status code of the reply message.
Trait Implementations§
Source§impl Clone for SignalMessage
impl Clone for SignalMessage
Source§fn clone(&self) -> SignalMessage
fn clone(&self) -> SignalMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignalMessage
impl Debug for SignalMessage
Source§impl PartialEq for SignalMessage
impl PartialEq for SignalMessage
impl Eq for SignalMessage
impl StructuralPartialEq for SignalMessage
Auto Trait Implementations§
impl Freeze for SignalMessage
impl RefUnwindSafe for SignalMessage
impl Send for SignalMessage
impl Sync for SignalMessage
impl Unpin for SignalMessage
impl UnwindSafe for SignalMessage
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