pub struct VoicePacket {
pub voice: Option<Vec<u8>>,
pub username: Option<String>,
pub code: Option<VoiceCode>,
pub id: Option<usize>,
pub target_id: Option<usize>,
pub seq: usize,
pub timestamp: Option<u128>,
}Fields§
§voice: Option<Vec<u8>>§username: Option<String>§code: Option<VoiceCode>§id: Option<usize>§target_id: Option<usize>§seq: usize§timestamp: Option<u128>Trait Implementations§
Source§impl Default for VoicePacket
impl Default for VoicePacket
Source§impl<'de> SchemaRead<'de> for VoicePacket
impl<'de> SchemaRead<'de> for VoicePacket
Source§impl SchemaWrite for VoicePacket
impl SchemaWrite for VoicePacket
Auto Trait Implementations§
impl Freeze for VoicePacket
impl RefUnwindSafe for VoicePacket
impl Send for VoicePacket
impl Sync for VoicePacket
impl Unpin for VoicePacket
impl UnwindSafe for VoicePacket
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
Source§impl<'de, T> Deserialize<'de> for Twhere
T: SchemaRead<'de>,
impl<'de, T> Deserialize<'de> for Twhere
T: SchemaRead<'de>,
Source§impl<T> DeserializeOwned for Twhere
T: SchemaReadOwned,
impl<T> DeserializeOwned for Twhere
T: SchemaReadOwned,
Source§fn deserialize_from<'de>(
src: &mut impl Reader<'de>,
) -> Result<Self::Dst, ReadError>
fn deserialize_from<'de>( src: &mut impl Reader<'de>, ) -> Result<Self::Dst, ReadError>
Deserialize from the given
Reader into a new Self::Dst.Source§fn deserialize_from_into<'de>(
src: &mut impl Reader<'de>,
dst: &mut MaybeUninit<Self::Dst>,
) -> Result<(), ReadError>
fn deserialize_from_into<'de>( src: &mut impl Reader<'de>, dst: &mut MaybeUninit<Self::Dst>, ) -> Result<(), ReadError>
Deserialize from the given
Reader into dst.Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Serialize for Twhere
T: SchemaWrite + ?Sized,
impl<T> Serialize for Twhere
T: SchemaWrite + ?Sized,
Source§fn serialize(src: &Self::Src) -> Result<Vec<u8>, WriteError>
fn serialize(src: &Self::Src) -> Result<Vec<u8>, WriteError>
Serialize a serializable type into a
Vec of bytes.Source§fn serialize_into(
dst: &mut impl Writer,
src: &Self::Src,
) -> Result<(), WriteError>
fn serialize_into( dst: &mut impl Writer, src: &Self::Src, ) -> Result<(), WriteError>
Serialize a serializable type into the given byte buffer.
Source§fn serialized_size(src: &Self::Src) -> Result<u64, WriteError>
fn serialized_size(src: &Self::Src) -> Result<u64, WriteError>
Get the size in bytes of the type when serialized.