Skip to content

Commit 5fa4206

Browse files
committed
update doc about typedattributes
1 parent b117a9f commit 5fa4206

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
//! Ok(None) => println!("tool: empty"),
3232
//! Err(_) => println!("no tool attribute"),
3333
//! }
34+
//!
35+
//! // Access all the 'rtpmap' attributes as a `RtpMap` type
36+
//! // returns an iterator of type `Iterator<Item = Result<RtpMap, AttributeErr>>`
37+
//! let r = sdp.attributes_typed::<sdp_types::RtpMap>();
3438
//! ```
3539
//!
3640
//! ## Limitations

0 commit comments

Comments
 (0)