pub struct Circuit { /* private fields */ }Implementations§
Source§impl Circuit
impl Circuit
pub fn create_fast(ch: TorChannel) -> Result<Self>
pub fn send_relay(&mut self, cmd: u8, stream_id: u16, data: &[u8]) -> Result<()>
pub fn recv_relay(&mut self) -> Result<RelayMessage>
pub fn send_raw_body(&mut self, body: &[u8]) -> Result<()>
pub fn recv_raw_body(&mut self) -> Result<Bytes>
pub fn extend_ntor(&mut self, relay: &Relay) -> Result<()>
Auto Trait Implementations§
impl Freeze for Circuit
impl !RefUnwindSafe for Circuit
impl Send for Circuit
impl Sync for Circuit
impl Unpin for Circuit
impl UnsafeUnpin for Circuit
impl !UnwindSafe for Circuit
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