pub struct CoapTransport { /* private fields */ }Expand description
Implementations§
Source§impl CoapTransport
impl CoapTransport
Sourcepub fn new(config: CoapConfig) -> Self
pub fn new(config: CoapConfig) -> Self
Sourcepub fn is_connected(&self) -> bool
pub fn is_connected(&self) -> bool
Reports whether the transport currently holds a bound socket.
§Returns
true once connect has succeeded and before
disconnect is called.
Sourcepub async fn disconnect(&mut self) -> Result<()>
pub async fn disconnect(&mut self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoapTransport
impl RefUnwindSafe for CoapTransport
impl Send for CoapTransport
impl Sync for CoapTransport
impl Unpin for CoapTransport
impl UnsafeUnpin for CoapTransport
impl UnwindSafe for CoapTransport
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