pub struct OutgoingPort<T> { /* private fields */ }
Implementations§
Source§impl<T> OutgoingPort<T>where
T: Serialize,
impl<T> OutgoingPort<T>where
T: Serialize,
pub fn new<K: Into<String>>( name: K, channel: FluxChannel<RawPayload, PayloadError>, ) -> Self
Trait Implementations§
Source§impl<T> Debug for OutgoingPort<T>
impl<T> Debug for OutgoingPort<T>
Source§impl<T> Port for OutgoingPort<T>where
T: Serialize + ConditionallySend,
impl<T> Port for OutgoingPort<T>where
T: Serialize + ConditionallySend,
fn name(&self) -> &str
fn send_raw_result(&mut self, value: Result<RawPayload, PayloadError>)
fn send_packet(&mut self, value: Packet)
fn send_raw_payload(&mut self, value: PacketPayload)
fn open_bracket(&mut self)
fn close_bracket(&mut self)
fn done(&mut self)
fn error(&mut self, err: &str)
Source§impl<T> ValuePort<&T> for OutgoingPort<T>where
T: Serialize + ConditionallySend,
impl<T> ValuePort<&T> for OutgoingPort<T>where
T: Serialize + ConditionallySend,
Source§impl<T> ValuePort<T> for OutgoingPort<T>where
T: Serialize + ConditionallySend,
impl<T> ValuePort<T> for OutgoingPort<T>where
T: Serialize + ConditionallySend,
Source§impl<T> WasmRsChannel for OutgoingPort<T>where
T: Serialize + ConditionallySend,
impl<T> WasmRsChannel for OutgoingPort<T>where
T: Serialize + ConditionallySend,
fn channel(&self) -> FluxChannel<RawPayload, PayloadError>
Auto Trait Implementations§
impl<T> Freeze for OutgoingPort<T>
impl<T> !RefUnwindSafe for OutgoingPort<T>
impl<T> Send for OutgoingPort<T>where
T: Send,
impl<T> Sync for OutgoingPort<T>where
T: Sync,
impl<T> Unpin for OutgoingPort<T>where
T: Unpin,
impl<T> !UnwindSafe for OutgoingPort<T>
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