Struct Dispatcher

pub struct Dispatcher<S: Server> { pub(in ::bridge::server) handle_store: HandleStore<S>, pub(in ::bridge::server) server: S }

Fields

handle_store: HandleStore<S>
server: S

Implementations

impl<S: Server> Dispatcher<S>

fn dispatch(&mut self, buf: Buffer) -> Buffer

Auto Trait Implementations

impl<S> !Send for Dispatcher<S>

impl<S> !Sync for Dispatcher<S>

impl<S> Freeze for Dispatcher<S> where HandleStore<S>: Freeze, S: Freeze,

impl<S> RefUnwindSafe for Dispatcher<S> where HandleStore<S>: RefUnwindSafe, S: RefUnwindSafe,

impl<S> Unpin for Dispatcher<S> where HandleStore<S>: Unpin, S: Unpin,

impl<S> UnsafeUnpin for Dispatcher<S> where HandleStore<S>: UnsafeUnpin, S: UnsafeUnpin,

impl<S> UnwindSafe for Dispatcher<S> where HandleStore<S>: UnwindSafe, S: UnwindSafe,

Blanket Implementations

impl<T> Any for Dispatcher<S> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> From<T> for Dispatcher<S>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for Dispatcher<S> where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for Dispatcher<S>

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

fn into(self) -> U

Calls U::from(self).

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

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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