pub struct ParamsRef<'a>(/* private fields */);
Expand description
Reference to a deserialized Params.
Implementations§
Source§impl<'a> ParamsRef<'a>
impl<'a> ParamsRef<'a>
Sourcepub fn ssrc(&self) -> Result<u32>
pub fn ssrc(&self) -> Result<u32>
Getter for the ssrc
field.
Sourcepub fn payload_type(&self) -> Result<u8>
pub fn payload_type(&self) -> Result<u8>
Getter for the payload_type
field.
Sourcepub fn mime_type(&self) -> Result<&'a str>
pub fn mime_type(&self) -> Result<&'a str>
Getter for the mime_type
field.
Sourcepub fn clock_rate(&self) -> Result<u32>
pub fn clock_rate(&self) -> Result<u32>
Getter for the clock_rate
field.
Sourcepub fn cname(&self) -> Result<&'a str>
pub fn cname(&self) -> Result<&'a str>
Getter for the cname
field.
Trait Implementations§
Source§impl<'a> ReadAsRoot<'a> for ParamsRef<'a>
impl<'a> ReadAsRoot<'a> for ParamsRef<'a>
impl<'a> Copy for ParamsRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ParamsRef<'a>
impl<'a> RefUnwindSafe for ParamsRef<'a>
impl<'a> Send for ParamsRef<'a>
impl<'a> Sync for ParamsRef<'a>
impl<'a> Unpin for ParamsRef<'a>
impl<'a> UnwindSafe for ParamsRef<'a>
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