Struct PollBackend

Source
pub struct PollBackend<Owner, const SOCKET_STACK_SIZE: usize, const QUEUE_STACK_SIZE: usize> { /* private fields */ }

Implementations§

Source§

impl<Owner, const SOCKET_STACK_SIZE: usize, const QUEUE_STACK_SIZE: usize> PollBackend<Owner, SOCKET_STACK_SIZE, QUEUE_STACK_SIZE>

Source

pub fn socket_count(&self) -> usize

Trait Implementations§

Source§

impl<Owner: Clone + Copy + PartialEq, const SOCKET_LIMIT: usize, const STACK_QUEUE_SIZE: usize> Backend<Owner> for PollBackend<Owner, SOCKET_LIMIT, STACK_QUEUE_SIZE>

Source§

impl<Owner: Clone + Copy + PartialEq, const SOCKET_LIMIT: usize, const QUEUE_SIZE: usize> BackendOwner<Owner> for PollBackend<Owner, SOCKET_LIMIT, QUEUE_SIZE>

Source§

fn on_action(&mut self, owner: Owner, action: BackendOutgoing)

Source§

impl<Owner, const SOCKET_LIMIT: usize, const STACK_QUEUE_SIZE: usize> Default for PollBackend<Owner, SOCKET_LIMIT, STACK_QUEUE_SIZE>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<Owner, const SOCKET_STACK_SIZE: usize, const QUEUE_STACK_SIZE: usize> Drop for PollBackend<Owner, SOCKET_STACK_SIZE, QUEUE_STACK_SIZE>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl<Owner, const SOCKET_STACK_SIZE: usize, const QUEUE_STACK_SIZE: usize> Freeze for PollBackend<Owner, SOCKET_STACK_SIZE, QUEUE_STACK_SIZE>
where Owner: Freeze,

§

impl<Owner, const SOCKET_STACK_SIZE: usize, const QUEUE_STACK_SIZE: usize> !RefUnwindSafe for PollBackend<Owner, SOCKET_STACK_SIZE, QUEUE_STACK_SIZE>

§

impl<Owner, const SOCKET_STACK_SIZE: usize, const QUEUE_STACK_SIZE: usize> Send for PollBackend<Owner, SOCKET_STACK_SIZE, QUEUE_STACK_SIZE>
where Owner: Send,

§

impl<Owner, const SOCKET_STACK_SIZE: usize, const QUEUE_STACK_SIZE: usize> Sync for PollBackend<Owner, SOCKET_STACK_SIZE, QUEUE_STACK_SIZE>
where Owner: Sync,

§

impl<Owner, const SOCKET_STACK_SIZE: usize, const QUEUE_STACK_SIZE: usize> Unpin for PollBackend<Owner, SOCKET_STACK_SIZE, QUEUE_STACK_SIZE>
where Owner: Unpin,

§

impl<Owner, const SOCKET_STACK_SIZE: usize, const QUEUE_STACK_SIZE: usize> !UnwindSafe for PollBackend<Owner, SOCKET_STACK_SIZE, QUEUE_STACK_SIZE>

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.