[−][src]Struct tapir_cwtch::connections::Connection
Implementations
impl<Direction> Connection<Direction> where
Direction: Clone,
[src]
Direction: Clone,
pub fn new_inbound(conn: TcpStream) -> Connection<InboundConnection>
[src]
pub fn new_outbound(conn: TcpStream) -> Connection<OutboundConnection>
[src]
pub fn try_clone(&self) -> Connection<Direction>
[src]
Trait Implementations
impl<Direction> ConnectionInterface for Connection<Direction>
[src]
pub fn set_hostname(&mut self, hostname: &String)
[src]
pub fn hostname(&self) -> String
[src]
pub fn enable_encryption(&mut self, key: Vec<u8>)
[src]
pub fn send(&mut self, amsg: &String) -> Result<(), Error>
[src]
pub fn send_encrypted(&mut self, msg: Vec<u8>) -> Result<(), Error>
[src]
pub fn expect_encrypted(&mut self) -> Vec<u8>
[src]
pub fn expect(&mut self) -> Result<Vec<u8>, Error>
[src]
pub fn shutdown(&mut self)
[src]
pub fn set_capability(&mut self, capability: &Capability)
[src]
pub fn has_capability(&self, capability: &Capability) -> bool
[src]
Auto Trait Implementations
impl<Direction> RefUnwindSafe for Connection<Direction> where
Direction: RefUnwindSafe,
[src]
Direction: RefUnwindSafe,
impl<Direction> Send for Connection<Direction> where
Direction: Send,
[src]
Direction: Send,
impl<Direction> Sync for Connection<Direction> where
Direction: Sync,
[src]
Direction: Sync,
impl<Direction> Unpin for Connection<Direction> where
Direction: Unpin,
[src]
Direction: Unpin,
impl<Direction> UnwindSafe for Connection<Direction> where
Direction: UnwindSafe,
[src]
Direction: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,