NetChannelInfo

Struct NetChannelInfo 

Source
#[repr(C)]
pub struct NetChannelInfo { pub vtable: *mut *mut usize, pub ty: NetEnum, }

Fields§

§vtable: *mut *mut usize§ty: NetEnum

Implementations§

Source§

impl NetChannelInfo

Source

pub fn GetName(&mut self) -> *const c_char

Source

pub fn GetAddress(&mut self) -> *const c_char

Source

pub fn GetTime(&mut self) -> c_float

Source

pub fn GetTimeConnected(&mut self) -> c_float

Source

pub fn GetBufferSize(&mut self) -> c_int

Source

pub fn GetDataRate(&mut self) -> c_int

Source

pub fn IsLoopback(&mut self) -> bool

Source

pub fn IsTimingOut(&mut self) -> bool

Source

pub fn IsPlayback(&mut self) -> bool

Source

pub fn GetLatency(&mut self, flow: c_int) -> c_float

Source

pub fn GetAvgLatency(&mut self, flow: c_int) -> c_float

Source

pub fn GetAvgLoss(&mut self, flow: c_int) -> c_float

Source

pub fn GetAvgChoke(&mut self, flow: c_int) -> c_float

Source

pub fn GetAvgData(&mut self, flow: c_int) -> c_float

Source

pub fn GetAvgPackets(&mut self, flow: c_int) -> c_float

Source

pub fn GetTotalData(&mut self, flow: c_int) -> c_int

Source

pub fn GetSequenceNr(&mut self, flow: c_int) -> c_int

Source

pub fn IsValidPacket(&mut self, flow: c_int, frame_number: c_int) -> bool

Source

pub fn GetPacketTime(&mut self, flow: c_int, frame_number: c_int) -> c_float

Source

pub fn GetPacketBytes(&mut self, flow: c_int, frame_number: c_int) -> c_int

Source

pub fn GetStreamProgress( &mut self, flow: c_int, received: *mut c_int, total: *mut c_int, ) -> bool

Source

pub fn GetTimeSinceLastReceived(&mut self) -> c_float

Source

pub fn GetCommandInterpolationAmount( &mut self, flow: c_int, frame_number: c_int, ) -> c_float

Source

pub fn GetPacketResponseLatency( &mut self, flow: c_int, frame_number: c_int, latencyms: *mut c_int, pnchoke: *mut c_int, ) -> c_float

Source

pub fn GetRemoteFramerate( &mut self, pflFrameTime: *mut c_float, pflFrameTimeStdDeviation: *mut c_float, ) -> c_float

Source

pub fn GetTimeoutSeconds(&mut self) -> c_float

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.