[−][src]Struct netmod_mem::MemMod
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.
Methods
impl MemMod[src]
pub fn new() -> Self[src]
Create a new, unpaired MemMod.
pub fn make_pair() -> (Self, 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.
pub fn link(&self, pair: &MemMod)[src]
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]
&'life0 self,
frame: Frame,
__arg2: Target
) -> Pin<Box<dyn Future<Output = NetResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Send a message to a specific endpoint (client)
Errors
Returns OperationNotSupported if attempting to send through
a connection that is not yet connected.
fn next<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = NetResult<(Frame, Target)>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self
) -> Pin<Box<dyn Future<Output = NetResult<(Frame, Target)>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,