[−][src]Struct queen::port::Port
Methods
impl Port
[src]
pub fn connect(
id: MessageId,
connector: Connector,
auth_msg: Message,
works: usize
) -> Result<Port>
[src]
id: MessageId,
connector: Connector,
auth_msg: Message,
works: usize
) -> Result<Port>
ⓘImportant traits for Recvpub fn recv(&self, chan: &str, labels: Option<Vec<String>>) -> Recv
[src]
ⓘImportant traits for Recv
pub fn async_recv(
&self,
chan: &str,
labels: Option<Vec<String>>
) -> Result<AsyncRecv>
[src]
&self,
chan: &str,
labels: Option<Vec<String>>
) -> Result<AsyncRecv>
pub fn send(&self, chan: &str, msg: Message, label: Option<Vec<String>>)
[src]
pub fn call(
&self,
method: &str,
labels: Option<Vec<String>>,
request: Message,
timeout: Option<Duration>
) -> Result<Message, ()>
[src]
&self,
method: &str,
labels: Option<Vec<String>>,
request: Message,
timeout: Option<Duration>
) -> Result<Message, ()>
pub fn add(
&self,
method: &str,
labels: Option<Vec<String>>,
handle: impl Fn(Message) -> Message + Sync + Send + 'static
) -> usize
[src]
&self,
method: &str,
labels: Option<Vec<String>>,
handle: impl Fn(Message) -> Message + Sync + Send + 'static
) -> usize
pub fn remove(&self, id: usize)
[src]
pub fn id(&self) -> &MessageId
[src]
pub fn is_run(&self) -> bool
[src]
pub fn stop(&self)
[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Port
impl Send for Port
impl Sync for Port
impl Unpin for Port
impl !UnwindSafe for Port
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,