pub struct UnsupportedSocketProvider;Trait Implementations§
Source§impl Clone for UnsupportedSocketProvider
impl Clone for UnsupportedSocketProvider
Source§fn clone(&self) -> UnsupportedSocketProvider
fn clone(&self) -> UnsupportedSocketProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UnsupportedSocketProvider
Source§impl Debug for UnsupportedSocketProvider
impl Debug for UnsupportedSocketProvider
Source§impl Default for UnsupportedSocketProvider
impl Default for UnsupportedSocketProvider
Source§fn default() -> UnsupportedSocketProvider
fn default() -> UnsupportedSocketProvider
Returns the “default value” for a type. Read more
Source§impl SocketProvider for UnsupportedSocketProvider
impl SocketProvider for UnsupportedSocketProvider
fn connect( &self, _host: &str, _port: u16, _callback: SocketCallback, ) -> Result<SocketHandle, SocketError>
fn send( &self, _socket: SocketHandle, _bytes: &[u8], ) -> Result<usize, SocketError>
fn close(&self, _socket: SocketHandle) -> Result<(), SocketError>
fn listen( &self, _host: &str, _port: u16, _callback: SocketServerCallback, ) -> Result<SocketHandle, SocketError>
fn endpoint(&self, _server: SocketHandle) -> Result<(String, u16), SocketError>
fn events(&self, _handle: SocketHandle) -> Result<SocketHandle, SocketError>
fn next(&self, _stream: SocketHandle) -> Result<Promise, SocketError>
Auto Trait Implementations§
impl Freeze for UnsupportedSocketProvider
impl RefUnwindSafe for UnsupportedSocketProvider
impl Send for UnsupportedSocketProvider
impl Sync for UnsupportedSocketProvider
impl Unpin for UnsupportedSocketProvider
impl UnsafeUnpin for UnsupportedSocketProvider
impl UnwindSafe for UnsupportedSocketProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more