Struct Port

Source
pub struct Port(/* private fields */);

Implementations§

Source§

impl Port

Source

pub fn accept( &self, config: PortConfig, request: RecvMessage<'_>, port_context: usize, message: &mut SendMessage, ) -> Result<Port>

Source

pub fn reject(&self, request: RecvMessage<'_>) -> Result<()>

Source

pub fn recv<'a>( &'a self, message: &'a mut RecvMessageBuffer, ) -> Result<RecvMessage<'a>>

Source

pub fn try_recv<'a>( &'a self, message: &'a mut RecvMessageBuffer, ) -> Result<Option<RecvMessage<'a>>>

Source

pub fn start_send<'a>( &'a self, message: &'a mut SendMessage, ) -> SendOperation<'a>

Source

pub fn send(&self, data: &[u8]) -> Result<()>

Source

pub fn request(&self, data: &[u8]) -> Result<()>

Source

pub fn reply(&self, request: RecvMessage<'_>, data: &[u8]) -> Result<()>

Source

pub fn associate_iocp(&self, iocp: &IoCompletionPort, key: usize) -> Result<()>

Trait Implementations§

Source§

impl AsHandle for Port

Source§

fn as_handle(&self) -> BorrowedHandle<'_>

Borrows the handle. Read more
Source§

impl Debug for Port

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.