pub struct Packet { /* private fields */ }
Implementations§
Source§impl Packet
impl Packet
pub fn new<'a, T: 'a + AsRef<[u8]>>(data: &T) -> Self
pub fn get_bos(&self) -> bool
pub fn set_bos(&mut self, bos: bool)
pub fn get_eos(&self) -> bool
pub fn set_eos(&mut self, eos: bool)
pub fn get_granulepos(&self) -> i64
pub fn set_granulepos(&mut self, granulepos: i64)
pub fn get_packetno(&self) -> i64
pub fn set_packetno(&mut self, packetno: i64)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Packet
impl RefUnwindSafe for Packet
impl !Send for Packet
impl !Sync for Packet
impl Unpin for Packet
impl UnwindSafe for Packet
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