pub enum PipeLine {
Udp(UdpPipeLine),
Tcp(TcpPipeLine),
Extend(ExtensiblePipeLine),
}Variants§
Implementations§
Source§impl PipeLine
impl PipeLine
Sourcepub async fn recv_from(
&mut self,
buf: &mut [u8],
) -> Option<Result<(usize, RouteKey)>>
pub async fn recv_from( &mut self, buf: &mut [u8], ) -> Option<Result<(usize, RouteKey)>>
Receving buf from the associated PipeLine
usize in the Ok branch indicates how many bytes are received
RouteKey in the Ok branch denotes the source where these bytes are received from
pub fn done(&mut self)
Source§impl PipeLine
impl PipeLine
Sourcepub fn protocol(&self) -> ConnectProtocol
pub fn protocol(&self) -> ConnectProtocol
The protocol this pipeline is using
pub fn remote_addr(&self) -> Option<SocketAddr>
Auto Trait Implementations§
impl Freeze for PipeLine
impl !RefUnwindSafe for PipeLine
impl Send for PipeLine
impl Sync for PipeLine
impl Unpin for PipeLine
impl !UnwindSafe for PipeLine
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