pub enum TransportHost {
System(SystemTransportSender),
}Expand description
Different transport mechanisms for communication.
Variants§
System(SystemTransportSender)
System-level transport using native OS capabilities.
Implementations§
Source§impl TransportHost
impl TransportHost
Sourcepub fn send_event<T: Any + Send + 'static>(&self, event: T)
pub fn send_event<T: Any + Send + 'static>(&self, event: T)
Sends a event to the server itself.
Sourcepub fn send_message(&self, response: Message)
pub fn send_message(&self, response: Message)
Sends a message.
Trait Implementations§
Source§impl Clone for TransportHost
impl Clone for TransportHost
Source§fn clone(&self) -> TransportHost
fn clone(&self) -> TransportHost
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 Freeze for TransportHost
impl RefUnwindSafe for TransportHost
impl Send for TransportHost
impl Sync for TransportHost
impl Unpin for TransportHost
impl UnwindSafe for TransportHost
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