Struct netmod_mem::MemMod[][src]

pub struct MemMod { /* fields omitted */ }

Represents a single netmod endpoint that can connect to exactly one other, either as a 1-to-1 link between libqaul instances or as a link into a transmission medium of some kind.

Implementations

impl MemMod[src]

pub fn new() -> Arc<Self>[src]

Create a new, unpaired MemMod.

pub fn make_pair() -> (Arc<Self>, Arc<Self>)[src]

Create two already-paired MemMods, ready for use.

pub fn linked(&self) -> bool[src]

Return true if the MemMod is linked to another one or false otherwise.

Establish a 1-to-1 link between two MemMods.

Panics

Panics if this MemMod, or the other one, is already linked.

pub fn split(&self)[src]

Remove the connection between MemMods.

Trait Implementations

impl Endpoint for MemMod[src]

fn size_hint(&self) -> usize[src]

Provides maximum frame-size information to RATMAN

fn send<'life0, 'async_trait>(
    &'life0 self,
    frame: Frame,
    __arg2: Target
) -> Pin<Box<dyn Future<Output = NetResult<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Send a message to a specific endpoint (client)

Errors

Returns OperationNotSupported if attempting to send through a connection that is not yet connected.

Auto Trait Implementations

impl !RefUnwindSafe for MemMod

impl Send for MemMod

impl Sync for MemMod

impl Unpin for MemMod

impl !UnwindSafe for MemMod

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,