Struct net_traits::ResourceThreads
source · pub struct ResourceThreads {
pub core_thread: CoreResourceThread,
pub(crate) storage_thread: IpcSender<StorageThreadMsg>,
}
Fields§
§core_thread: CoreResourceThread
§storage_thread: IpcSender<StorageThreadMsg>
Implementations§
source§impl ResourceThreads
impl ResourceThreads
pub fn new( c: CoreResourceThread, s: IpcSender<StorageThreadMsg>, ) -> ResourceThreads
pub fn clear_cache(&self)
Trait Implementations§
source§impl Clone for ResourceThreads
impl Clone for ResourceThreads
source§fn clone(&self) -> ResourceThreads
fn clone(&self) -> ResourceThreads
Returns a copy 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 moresource§impl Debug for ResourceThreads
impl Debug for ResourceThreads
source§impl<'de> Deserialize<'de> for ResourceThreads
impl<'de> Deserialize<'de> for ResourceThreads
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl IpcSend<CoreResourceMsg> for ResourceThreads
impl IpcSend<CoreResourceMsg> for ResourceThreads
source§fn send(&self, msg: CoreResourceMsg) -> IpcSendResult
fn send(&self, msg: CoreResourceMsg) -> IpcSendResult
send message T
source§fn sender(&self) -> IpcSender<CoreResourceMsg>
fn sender(&self) -> IpcSender<CoreResourceMsg>
get underlying sender
source§impl IpcSend<StorageThreadMsg> for ResourceThreads
impl IpcSend<StorageThreadMsg> for ResourceThreads
source§fn send(&self, msg: StorageThreadMsg) -> IpcSendResult
fn send(&self, msg: StorageThreadMsg) -> IpcSendResult
send message T
source§fn sender(&self) -> IpcSender<StorageThreadMsg>
fn sender(&self) -> IpcSender<StorageThreadMsg>
get underlying sender
source§impl MallocSizeOf for ResourceThreads
impl MallocSizeOf for ResourceThreads
source§fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Auto Trait Implementations§
impl Freeze for ResourceThreads
impl !RefUnwindSafe for ResourceThreads
impl Send for ResourceThreads
impl !Sync for ResourceThreads
impl Unpin for ResourceThreads
impl UnwindSafe for ResourceThreads
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