Skip to main content

SrsppNode

Struct SrsppNode 

Source
pub struct SrsppNode<E, S: MessageStore = NoStore, Re: Reachable = AlwaysReachable, R: ReceiverBackend = ReceiverMachine<8, 4096, 8192>, const WIN: usize = 8, const BUF: usize = 4096, const MTU: usize = 512, const MAX_STREAMS: usize = 1> { /* private fields */ }
Expand description

Combined SRSPP sender and receiver over a single link.

Implementations§

Source§

impl<E: Clone, S: MessageStore, Re: Reachable, R: ReceiverBackend, const WIN: usize, const BUF: usize, const MTU: usize, const MAX_STREAMS: usize> SrsppNode<E, S, Re, R, WIN, BUF, MTU, MAX_STREAMS>

Source

pub fn new( sender_config: SenderConfig, receiver_config: ReceiverConfig, store: S, reachable: Re, ) -> Self

Creates a new node with sender and receiver configurations.

Source

pub fn split<L: NetworkWrite<Error = E> + NetworkRead<Error = E>, P: RtoPolicy>( &self, link: L, rto_policy: P, ) -> (SrsppRxHandle<'_, E, R, MAX_STREAMS>, SrsppTxHandle<'_, E, S, Re, WIN, BUF, MTU>, SrsppNodeDriver<'_, L, P, E, S, Re, R, WIN, BUF, MTU, MAX_STREAMS>)

Splits into separate tx/rx handles and a driver for I/O.

Auto Trait Implementations§

§

impl<E, S = NoStore, Re = AlwaysReachable, R = PackedReceiver<8, 4096, 8192>, const WIN: usize = 8, const BUF: usize = 4096, const MTU: usize = 512, const MAX_STREAMS: usize = 1> !Freeze for SrsppNode<E, S, Re, R, WIN, BUF, MTU, MAX_STREAMS>

§

impl<E, S = NoStore, Re = AlwaysReachable, R = PackedReceiver<8, 4096, 8192>, const WIN: usize = 8, const BUF: usize = 4096, const MTU: usize = 512, const MAX_STREAMS: usize = 1> !RefUnwindSafe for SrsppNode<E, S, Re, R, WIN, BUF, MTU, MAX_STREAMS>

§

impl<E, S, Re, R, const WIN: usize, const BUF: usize, const MTU: usize, const MAX_STREAMS: usize> Send for SrsppNode<E, S, Re, R, WIN, BUF, MTU, MAX_STREAMS>
where S: Send, Re: Send, E: Send, R: Send,

§

impl<E, S = NoStore, Re = AlwaysReachable, R = PackedReceiver<8, 4096, 8192>, const WIN: usize = 8, const BUF: usize = 4096, const MTU: usize = 512, const MAX_STREAMS: usize = 1> !Sync for SrsppNode<E, S, Re, R, WIN, BUF, MTU, MAX_STREAMS>

§

impl<E, S, Re, R, const WIN: usize, const BUF: usize, const MTU: usize, const MAX_STREAMS: usize> Unpin for SrsppNode<E, S, Re, R, WIN, BUF, MTU, MAX_STREAMS>
where S: Unpin, Re: Unpin, E: Unpin, R: Unpin,

§

impl<E, S, Re, R, const WIN: usize, const BUF: usize, const MTU: usize, const MAX_STREAMS: usize> UnsafeUnpin for SrsppNode<E, S, Re, R, WIN, BUF, MTU, MAX_STREAMS>

§

impl<E, S, Re, R, const WIN: usize, const BUF: usize, const MTU: usize, const MAX_STREAMS: usize> UnwindSafe for SrsppNode<E, S, Re, R, WIN, BUF, MTU, MAX_STREAMS>

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> Same for T

Source§

type Output = T

Should always be Self
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.