pub struct KeyMgmt {
pub method: KeyMgmtMethod,
pub data: Option<String>,
}Expand description
Key management attribute (a=key-mgmt) attribute
See RFC 4567 Section 4.1.
The key management data is kept verbatim; for the mikey method it is
the base64-encoded MIKEY message (RFC 3830, RFC 4567 section 7).
Media-level key-mgmt attributes override session-level ones, which
consumers have to resolve themselves.
Fields§
§method: KeyMgmtMethodKey management protocol.
data: Option<String>Key management data, if any.
Implementations§
Source§impl KeyMgmt
impl KeyMgmt
pub fn new(method: KeyMgmtMethod) -> Self
pub fn with_data(method: KeyMgmtMethod, data: impl ToString) -> Self
Trait Implementations§
impl Eq for KeyMgmt
impl StructuralPartialEq for KeyMgmt
Auto Trait Implementations§
impl Freeze for KeyMgmt
impl RefUnwindSafe for KeyMgmt
impl Send for KeyMgmt
impl Sync for KeyMgmt
impl Unpin for KeyMgmt
impl UnsafeUnpin for KeyMgmt
impl UnwindSafe for KeyMgmt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more