Struct wmproxy::ProtCreate
source · pub struct ProtCreate { /* private fields */ }
Expand description
新的Socket连接请求, 接收方创建一个虚拟链接来对应该Socket的读取写入
Implementations§
source§impl ProtCreate
impl ProtCreate
pub fn new(sock_map: u64, domain: Option<String>) -> Self
pub fn parse<T: Buf>(header: ProtFrameHeader, buf: T) -> ProxyResult<ProtCreate>
pub fn encode<B: Buf + BufMut>(self, buf: &mut B) -> ProxyResult<usize>
pub fn sock_map(&self) -> u64
pub fn domain(&self) -> &Option<String>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ProtCreate
impl Send for ProtCreate
impl Sync for ProtCreate
impl Unpin for ProtCreate
impl UnwindSafe for ProtCreate
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