[−][src]Struct async_coap::link_format::LinkAttributeWrite
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,
'a: 'b,
impl<'a, 'b, T: ?Sized> Sync for LinkAttributeWrite<'a, 'b, T> where
T: Sync,
T: Sync,
impl<'a, 'b, T: ?Sized> Send for LinkAttributeWrite<'a, 'b, T> where
T: Send,
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,
T: RefUnwindSafe,
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>,