diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-06 17:37:35 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-06 17:37:35 +0200 |
commit | 7aa211a8d7ae2efeebd9362699a1aea4b5690e3d (patch) | |
tree | e0af8720ee3b770688600a8ea025de2ce81e5017 /src/encoding/mod.rs | |
parent | 7177367ae41a5e2d6ed401f60ee1455812dd8ffb (diff) | |
download | sip-rs-7aa211a8d7ae2efeebd9362699a1aea4b5690e3d.tar sip-rs-7aa211a8d7ae2efeebd9362699a1aea4b5690e3d.tar.bz2 sip-rs-7aa211a8d7ae2efeebd9362699a1aea4b5690e3d.tar.zst |
start on sdp impl
Diffstat (limited to 'src/encoding/mod.rs')
-rw-r--r-- | src/encoding/mod.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/encoding/mod.rs b/src/encoding/mod.rs index f0796c8..816aa01 100644 --- a/src/encoding/mod.rs +++ b/src/encoding/mod.rs @@ -35,3 +35,12 @@ impl FromStr for Message { } } } + +impl Message { + pub fn body_mut(&mut self) -> &mut String { + match self { + Message::Request(r) => &mut r.body, + Message::Response(r) => &mut r.body, + } + } +} |