pub enum C2SInitData<'a> {
Init0 {
version: u32,
timestamp: u32,
random0: &'a [u8; 4],
},
Init2 {
version: u32,
random1: &'a [u8; 16],
random0_r: &'a [u8; 4],
},
Init4 {
version: u32,
x: &'a [u8; 64],
n: &'a [u8; 64],
level: u32,
random2: &'a [u8; 100],
y: &'a [u8; 64],
command: &'a [u8],
},
}Expand description
The mac has to be b"TS3INIT1".
version always contains the Teamspeak version as timestamp.
timestamp contains a current timestamp.
Variants§
Implementations§
Trait Implementations§
Source§impl<'a> Clone for C2SInitData<'a>
impl<'a> Clone for C2SInitData<'a>
Source§fn clone(&self) -> C2SInitData<'a>
fn clone(&self) -> C2SInitData<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for C2SInitData<'a>
impl<'a> RefUnwindSafe for C2SInitData<'a>
impl<'a> Send for C2SInitData<'a>
impl<'a> Sync for C2SInitData<'a>
impl<'a> Unpin for C2SInitData<'a>
impl<'a> UnwindSafe for C2SInitData<'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