[][src]Struct async_coap::link_format::LinkAttributeWrite

pub struct LinkAttributeWrite<'a, 'b, T: ?Sized>(_);

Helper for writing link format attributes; created by calling LinkFormatWrite::link.

Methods

impl<'a, 'b, T: Write + ?Sized> LinkAttributeWrite<'a, 'b, T>[src]

pub fn attr(self, key: &'static str, value: &str) -> Self[src]

Adds an attribute to the link, only quoting the value if it contains non-ascii-alphanumeric characters.

pub fn attr_u32(self, key: &'static str, value: u32) -> Self[src]

Adds an attribute to the link that has u32 value.

pub fn attr_u16(self, key: &'static str, value: u16) -> Self[src]

Adds an attribute to the link that has u16 value.

pub fn attr_quoted(self, key: &'static str, value: &str) -> Self[src]

Adds an attribute to the link, unconditionally quoting the value.

pub fn finish(self) -> Result<(), Error>[src]

Consumes this LinkAttributeWrite instance, returning any error that might have occurred during writing.

Trait Implementations

impl<'a, 'b, T: Debug + ?Sized> Debug for LinkAttributeWrite<'a, 'b, T>[src]

Auto Trait Implementations

impl<'a, 'b, T: ?Sized> Unpin for LinkAttributeWrite<'a, 'b, T> where
    'a: 'b, 

impl<'a, 'b, T: ?Sized> Sync for LinkAttributeWrite<'a, 'b, T> where
    T: Sync

impl<'a, 'b, T: ?Sized> Send for LinkAttributeWrite<'a, 'b, T> where
    T: Send

impl<'a, 'b, T> !UnwindSafe for LinkAttributeWrite<'a, 'b, T>

impl<'a, 'b, T: ?Sized> RefUnwindSafe for LinkAttributeWrite<'a, 'b, T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,