pub struct UtpContextHandle<C, S> { /* private fields */ }Methods from Deref<Target = UtpContext<C, S>>§
pub unsafe fn connect(&self, addr: SocketAddr) -> Result<UtpSocketHandle<S>>
pub unsafe fn utp_issue_deferred_acks(&self)
pub unsafe fn utp_process_udp(&self, from: SocketAddr, buf: &[u8]) -> bool
pub unsafe fn utp_check_timeouts(&self)
pub unsafe fn set_context_data(&self, data: C)
pub unsafe fn get_context_data(&self) -> &C
pub unsafe fn get_context_data_mut(&mut self) -> &mut C
pub unsafe fn clear_callback(&self, event: UtpEvent)
pub unsafe fn set_callback<F>(&self, event: UtpEvent, cb: F)
Trait Implementations§
Source§impl<C, S> Default for UtpContextHandle<C, S>
impl<C, S> Default for UtpContextHandle<C, S>
Source§impl<C, S> DerefMut for UtpContextHandle<C, S>
impl<C, S> DerefMut for UtpContextHandle<C, S>
Source§impl<C, S> Drop for UtpContextHandle<C, S>
impl<C, S> Drop for UtpContextHandle<C, S>
Auto Trait Implementations§
impl<C, S> Freeze for UtpContextHandle<C, S>
impl<C, S> RefUnwindSafe for UtpContextHandle<C, S>where
C: RefUnwindSafe,
S: RefUnwindSafe,
impl<C, S> !Send for UtpContextHandle<C, S>
impl<C, S> !Sync for UtpContextHandle<C, S>
impl<C, S> Unpin for UtpContextHandle<C, S>
impl<C, S> UnwindSafe for UtpContextHandle<C, S>where
C: UnwindSafe,
S: UnwindSafe,
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