[−][src]Function libcoap_sys::coap_option_filter_set
pub unsafe extern "C" fn coap_option_filter_set(
filter: *mut u16,
type_: u16
) -> c_int
Sets the corresponding entry for @p type in @p filter. This function returns @c 1 if bit was set or @c 0 on error (i.e. when the given type does not fit in the filter).
@param filter The filter object to change. @param type The type for which the bit should be set.
@return @c 1 if bit was set, @c 0 otherwise.