Struct tor_proto::circuit::ConversationInHandler
source · pub struct ConversationInHandler<'r, 'c, 'cc> { /* private fields */ }Available on crate feature
send-control-msg only.Expand description
Handle to use during an ongoing protocol exchange with a circuit’s last hop
This is passed to MsgHandler::handle_msg.
See also ConversationInHandler, which is a type used for the same purpose
but available to the caller of start_conversation_last_hop
Implementations§
source§impl ConversationInHandler<'_, '_, '_>
impl ConversationInHandler<'_, '_, '_>
sourcepub fn send_message(&mut self, msg: AnyRelayMsg) -> Result<()>
pub fn send_message(&mut self, msg: AnyRelayMsg) -> Result<()>
Send a protocol message as part of an ad-hoc exchange
This is the within-MsgHandler
counterpart to Conversation.
It differs only in that the send_message function here is sync,
and takes &mut self.
Auto Trait Implementations§
impl<'r, 'c, 'cc> !RefUnwindSafe for ConversationInHandler<'r, 'c, 'cc>
impl<'r, 'c, 'cc> !Send for ConversationInHandler<'r, 'c, 'cc>
impl<'r, 'c, 'cc> !Sync for ConversationInHandler<'r, 'c, 'cc>
impl<'r, 'c, 'cc> Unpin for ConversationInHandler<'r, 'c, 'cc>
impl<'r, 'c, 'cc> !UnwindSafe for ConversationInHandler<'r, 'c, 'cc>
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