pub struct SenderHandle {
pub protocol: Option<String>,
pub session_id: Option<SessionId>,
/* private fields */
}Expand description
Handle for sending replies within a protocol session.
This is used by reply() to send messages back to the sender
within the context of a session.
Fields§
§protocol: Option<String>The protocol this session belongs to (if any).
session_id: Option<SessionId>The session ID for this message exchange.
Implementations§
Trait Implementations§
Source§impl Clone for SenderHandle
impl Clone for SenderHandle
Source§fn clone(&self) -> SenderHandle
fn clone(&self) -> SenderHandle
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 moreAuto Trait Implementations§
impl Freeze for SenderHandle
impl RefUnwindSafe for SenderHandle
impl Send for SenderHandle
impl Sync for SenderHandle
impl Unpin for SenderHandle
impl UnsafeUnpin for SenderHandle
impl UnwindSafe for SenderHandle
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