pub struct SessionLink {
inner: AnyLink,
tap: Rc<RefCell<Option<PcapWriter>>>,
}Expand description
A link that copies every ULCP frame into the tap, when one is installed.
Fields§
§inner: AnyLink§tap: Rc<RefCell<Option<PcapWriter>>>Implementations§
Trait Implementations§
Source§impl FrameLink for SessionLink
impl FrameLink for SessionLink
Source§async fn send_frame(&mut self, frame: &[u8]) -> Result<(), UlcpError>
async fn send_frame(&mut self, frame: &[u8]) -> Result<(), UlcpError>
Send one complete ULCP frame.
Source§fn poll_recv_frame(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Vec<u8>, UlcpError>>
fn poll_recv_frame( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<Vec<u8>, UlcpError>>
Poll for the next complete ULCP frame. Read more
§async fn recv_frame(&mut self) -> Result<Vec<u8>, UlcpError>
async fn recv_frame(&mut self) -> Result<Vec<u8>, UlcpError>
Receive the next complete ULCP frame.
Auto Trait Implementations§
impl Freeze for SessionLink
impl !RefUnwindSafe for SessionLink
impl !Send for SessionLink
impl !Sync for SessionLink
impl Unpin for SessionLink
impl !UnwindSafe for SessionLink
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more