pub struct Stack<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Stack<'a>
impl<'a> Stack<'a>
pub fn bind( &self, protocol: Protocol, endpoint: impl Into<SocketEndpoint>, ) -> Result<SocketHandle>
pub fn unbind( &self, protocol: Protocol, endpoint: impl Into<SocketEndpoint>, ) -> Result<SocketHandle>
pub fn connect(&self, remote: IpEndpoint) -> Result<Connect<'a>>
pub fn disconnect(&self, handle: SocketHandle) -> Disconnect<'a> ⓘ
pub fn send<B: Into<Payload>, F: Fn() + 'static>( &self, data: B, conn: Connection, f: F, ) -> Send<'a> ⓘ
pub fn receive<B: Into<Payload>>(&self, data: B)
pub fn poll(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Stack<'a>
impl<'a> !RefUnwindSafe for Stack<'a>
impl<'a> !Send for Stack<'a>
impl<'a> !Sync for Stack<'a>
impl<'a> Unpin for Stack<'a>
impl<'a> !UnwindSafe for Stack<'a>
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