Skip to main content

NoneClient

Struct NoneClient 

Source
pub struct NoneClient<U, V = U>(/* private fields */);

Trait Implementations§

Source§

impl<U: UniqueIdentifier, V: UniqueIdentifier> Read<U> for NoneClient<U, V>

Source§

fn read(&mut self, _: Data<U>)

Read data from an input
Source§

impl<U: UniqueIdentifier, V: UniqueIdentifier> Update for NoneClient<U, V>

Source§

fn update(&mut self)

Source§

impl<U: UniqueIdentifier, V: UniqueIdentifier> Write<V> for NoneClient<U, V>

Source§

fn write(&mut self) -> Option<Data<V>>

Auto Trait Implementations§

§

impl<U, V> Freeze for NoneClient<U, V>

§

impl<U, V> RefUnwindSafe for NoneClient<U, V>

§

impl<U, V> Send for NoneClient<U, V>
where U: Send, V: Send,

§

impl<U, V> Sync for NoneClient<U, V>
where U: Sync, V: Sync,

§

impl<U, V> Unpin for NoneClient<U, V>
where U: Unpin, V: Unpin,

§

impl<U, V> UnsafeUnpin for NoneClient<U, V>

§

impl<U, V> UnwindSafe for NoneClient<U, V>
where U: UnwindSafe, V: UnwindSafe,

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.
Source§

impl<U, C> TryRead<U> for C
where U: UniqueIdentifier, C: Read<U>,

Source§

type Error = Infallible

Source§

fn try_read( &mut self, data: Data<U>, ) -> Result<&mut C, <C as TryRead<U>>::Error>

Read data from an input
Source§

fn boxed_try_read<'a, 'b>( &'a mut self, data: Data<U>, ) -> Result<&'a mut Self, Box<dyn Error + Send + Sync + 'b>>
where <Self as TryRead<U>>::Error: 'b,

Source§

impl<C> TryUpdate for C
where C: Update,

Source§

type Error = Infallible

Source§

fn try_update(&mut self) -> Result<&mut C, <C as TryUpdate>::Error>

Source§

fn boxed_try_update<'a, 'b>( &'a mut self, ) -> Result<&'a mut Self, Box<dyn Error + Send + Sync + 'b>>
where <Self as TryUpdate>::Error: 'b,

Source§

impl<U, C> TryWrite<U> for C
where U: UniqueIdentifier, C: Write<U>,

Source§

type Error = Infallible

Source§

fn try_write(&mut self) -> Result<Option<Data<U>>, <C as TryWrite<U>>::Error>

Source§

fn boxed_try_write<'a, 'b>( &'a mut self, ) -> Result<Option<Data<U>>, Box<dyn Error + Send + Sync + 'b>>
where <Self as TryWrite<U>>::Error: 'b,