pub struct VCLConnection { /* private fields */ }Implementations§
Source§impl VCLConnection
impl VCLConnection
pub async fn bind(addr: &str) -> Result<Self, String>
pub fn set_timeout(&mut self, secs: u64)
pub fn get_timeout(&self) -> u64
pub fn last_activity(&self) -> Instant
pub async fn connect(&mut self, addr: &str) -> Result<(), String>
pub async fn accept_handshake(&mut self) -> Result<(), String>
pub async fn send(&mut self, data: &[u8]) -> Result<(), String>
pub async fn recv(&mut self) -> Result<VCLPacket, String>
pub fn close(&mut self) -> Result<(), String>
pub fn is_closed(&self) -> bool
pub fn get_public_key(&self) -> Vec<u8> ⓘ
Auto Trait Implementations§
impl !Freeze for VCLConnection
impl RefUnwindSafe for VCLConnection
impl Send for VCLConnection
impl Sync for VCLConnection
impl Unpin for VCLConnection
impl UnsafeUnpin for VCLConnection
impl UnwindSafe for VCLConnection
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