[−][src]Struct async_coap::null::NullLocalEndpoint
A dummy endpoint implementation that doesn't do anything. Useful for testing.
Trait Implementations
impl LocalEndpoint for NullLocalEndpoint
[src]
type SocketAddr = SocketAddr
The SocketAddr
type to use with this local endpoint. This is usually simply std::net::SocketAddr
, but may be different in some cases (like for CoAP-SMS endpoints). Read more
type SocketError = Error
The error type associated with errors generated by socket and address-lookup operations. Typically, this is std::io::Error
, but it may be different if Self::SocketAddr
isn't std::net::SocketAddr
. Read more
type DefaultTransParams = StandardCoapConstants
The trait representing the default transmission parameters to use.
fn scheme(&self) -> &'static str
[src]
fn default_port(&self) -> u16
[src]
type RemoteEndpoint = NullRemoteEndpoint
The concrete type for a RemoteEndpoint
associated with this local endpoint.
fn remote_endpoint<S, H, P>(
&self,
_addr: S,
_host: Option<H>,
_path: P
) -> Self::RemoteEndpoint where
S: ToSocketAddrs<SocketAddr = Self::SocketAddr, Error = Self::SocketError>,
H: Into<String>,
P: Into<RelRefBuf>,
[src]
&self,
_addr: S,
_host: Option<H>,
_path: P
) -> Self::RemoteEndpoint where
S: ToSocketAddrs<SocketAddr = Self::SocketAddr, Error = Self::SocketError>,
H: Into<String>,
P: Into<RelRefBuf>,
fn remote_endpoint_from_uri(
&self,
_uri: &Uri
) -> Result<Self::RemoteEndpoint, Error>
[src]
&self,
_uri: &Uri
) -> Result<Self::RemoteEndpoint, Error>
type LookupStream = Iter<IntoIter<Self::SocketAddr>>
The concrete return type of the lookup()
method.
fn lookup(
&self,
_hostname: &str,
_port: u16
) -> Result<Self::LookupStream, Error>
[src]
&self,
_hostname: &str,
_port: u16
) -> Result<Self::LookupStream, Error>
type InboundContext = NullInboundContext
Type used by closure that is passed into send()
, representing the context for the response. Read more
fn send<'a, S, R, SD>(
&'a self,
_dest: S,
_send_desc: SD
) -> BoxFuture<'a, Result<R, Error>> where
S: ToSocketAddrs<SocketAddr = Self::SocketAddr, Error = Self::SocketError> + 'a,
SD: SendDesc<Self::InboundContext, R> + 'a,
R: Send + 'a,
[src]
&'a self,
_dest: S,
_send_desc: SD
) -> BoxFuture<'a, Result<R, Error>> where
S: ToSocketAddrs<SocketAddr = Self::SocketAddr, Error = Self::SocketError> + 'a,
SD: SendDesc<Self::InboundContext, R> + 'a,
R: Send + 'a,
type RespondableInboundContext = NullRespondableInboundContext
Type used by closure that is passed into receive()
, representing the context for inbound requests. Read more
fn receive<'a, F>(&'a self, _handler: F) -> BoxFuture<'a, Result<(), Error>> where
F: FnMut(&Self::RespondableInboundContext) -> Result<(), Error> + 'a,
[src]
F: FnMut(&Self::RespondableInboundContext) -> Result<(), Error> + 'a,
impl Debug for NullLocalEndpoint where
Self: Send + Sync,
[src]
Self: Send + Sync,
Auto Trait Implementations
impl Unpin for NullLocalEndpoint
impl Sync for NullLocalEndpoint
impl Send for NullLocalEndpoint
impl UnwindSafe for NullLocalEndpoint
impl RefUnwindSafe for NullLocalEndpoint
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,