pub struct Port(/* private fields */);
Implementations§
Source§impl Port
impl Port
pub fn accept( &self, config: PortConfig, request: RecvMessage<'_>, port_context: usize, message: &mut SendMessage, ) -> Result<Port>
pub fn reject(&self, request: RecvMessage<'_>) -> Result<()>
pub fn recv<'a>( &'a self, message: &'a mut RecvMessageBuffer, ) -> Result<RecvMessage<'a>>
pub fn try_recv<'a>( &'a self, message: &'a mut RecvMessageBuffer, ) -> Result<Option<RecvMessage<'a>>>
pub fn start_send<'a>( &'a self, message: &'a mut SendMessage, ) -> SendOperation<'a>
pub fn send(&self, data: &[u8]) -> Result<()>
pub fn request(&self, data: &[u8]) -> Result<()>
pub fn reply(&self, request: RecvMessage<'_>, data: &[u8]) -> Result<()>
pub fn associate_iocp(&self, iocp: &IoCompletionPort, key: usize) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Port
impl RefUnwindSafe for Port
impl Send for Port
impl Sync for Port
impl Unpin for Port
impl UnwindSafe for Port
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