net_traits

Type Alias CoreResourceThread

Source
pub type CoreResourceThread = IpcSender<CoreResourceMsg>;
Expand description

Handle to a resource thread

Aliased Type§

struct CoreResourceThread { /* private fields */ }

Implementations

Source§

impl<T> IpcSender<T>
where T: Serialize,

Source

pub fn connect(name: String) -> Result<IpcSender<T>, Error>

Create an IpcSender connected to a previously defined IpcOneShotServer.

Source

pub fn send(&self, data: T) -> Result<(), Box<ErrorKind>>

Send data across the channel to the receiver.

Source

pub fn to_opaque(self) -> OpaqueIpcSender

Trait Implementations

Source§

impl<T> Clone for IpcSender<T>
where T: Serialize,

Source§

fn clone(&self) -> IpcSender<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T> Debug for IpcSender<T>
where T: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de, T> Deserialize<'de> for IpcSender<T>

Source§

fn deserialize<D>( deserializer: D, ) -> Result<IpcSender<T>, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<T> MallocSizeOf for IpcSender<T>

Source§

fn size_of(&self, _ops: &mut MallocSizeOfOps) -> usize

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself.
Source§

impl<T> OpaqueSender<T> for IpcSender<T>
where T: Serialize,

Source§

fn send(&self, message: T)

Send a message.
Source§

impl<T> Serialize for IpcSender<T>

Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more