pub struct GmodNetworkIndex { /* private fields */ }Implementations§
Source§impl GmodNetworkIndex
impl GmodNetworkIndex
pub fn new() -> Self
pub fn add_file_data(&mut self, file_id: FileId, data: FileNetworkData)
pub fn get_file_data(&self, file_id: FileId) -> Option<&FileNetworkData>
pub fn iter_all(&self) -> impl Iterator<Item = (FileId, &FileNetworkData)>
pub fn iter_send_flows(&self) -> impl Iterator<Item = (FileId, &NetSendFlow)>
pub fn iter_receive_flows( &self, ) -> impl Iterator<Item = (FileId, &NetReceiveFlow)>
pub fn get_send_flows_for_message( &self, name: &str, ) -> Vec<(FileId, &NetSendFlow)>
pub fn get_receive_flows_for_message( &self, name: &str, ) -> Vec<(FileId, &NetReceiveFlow)>
pub fn remove_file(&mut self, file_id: FileId)
pub fn clear(&mut self)
Trait Implementations§
Source§impl Debug for GmodNetworkIndex
impl Debug for GmodNetworkIndex
Source§impl Default for GmodNetworkIndex
impl Default for GmodNetworkIndex
Source§fn default() -> GmodNetworkIndex
fn default() -> GmodNetworkIndex
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GmodNetworkIndex
impl RefUnwindSafe for GmodNetworkIndex
impl Send for GmodNetworkIndex
impl Sync for GmodNetworkIndex
impl Unpin for GmodNetworkIndex
impl UnsafeUnpin for GmodNetworkIndex
impl UnwindSafe for GmodNetworkIndex
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more