#[non_exhaustive]
pub enum RelayMsg {
Show 19 variants
Begin(Begin),
Data(Data),
End(End),
Connected(Connected),
Sendme(Sendme),
Extend(Extend),
Extended(Extended),
Extend2(Extend2),
Extended2(Extended2),
Truncate,
Truncated(Truncated),
Drop,
Resolve(Resolve),
Resolved(Resolved),
BeginDir,
ConnectUdp(ConnectUdp),
ConnectedUdp(ConnectedUdp),
Datagram(Datagram),
Unrecognized(Unrecognized),
}
Expand description
A single parsed relay message, sent or received along a circuit
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Begin(Begin)
Create a stream
Data(Data)
Send data on a stream
End(End)
Close a stream
Connected(Connected)
Successful response to a Begin message
Sendme(Sendme)
For flow control
Extend(Extend)
Extend a circuit to a new hop (deprecated)
Extended(Extended)
Successful response to an Extend message (deprecated)
Extend2(Extend2)
Extend a circuit to a new hop
Extended2(Extended2)
Successful response to an Extend2 message
Truncate
Partially close a circuit
Truncated(Truncated)
Tell the client the a circuit has been partially closed
Drop
Used for padding
Resolve(Resolve)
Launch a DNS request
Resolved(Resolved)
Response to a Resolve message
BeginDir
Start a directory stream
ConnectUdp(ConnectUdp)
Start a UDP stream.
ConnectedUdp(ConnectedUdp)
Successful response to a ConnectUdp message
Datagram(Datagram)
UDP stream data
Unrecognized(Unrecognized)
An unrecognized command.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RelayMsg
impl Send for RelayMsg
impl Sync for RelayMsg
impl Unpin for RelayMsg
impl UnwindSafe for RelayMsg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more