Enum ockam_core::RouterMessage [−][src]
pub enum RouterMessage { Route(TransportMessage), Register { accepts: Address, self_addr: Address, }, }
A command message for router implementations
If a router is implemented as a worker, it should accept this message type.
Variants
Route(TransportMessage)
Route the provided message towards its destination
Register a new client to this routing scope
Show fields
Trait Implementations
impl Clone for RouterMessage
[src]
impl Clone for RouterMessage
[src]fn clone(&self) -> RouterMessage
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for RouterMessage
[src]
impl<'de> Deserialize<'de> for RouterMessage
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for RouterMessage
[src]
impl Eq for RouterMessage
[src]impl Hash for RouterMessage
[src]
impl Hash for RouterMessage
[src]impl Ord for RouterMessage
[src]
impl Ord for RouterMessage
[src]impl PartialEq<RouterMessage> for RouterMessage
[src]
impl PartialEq<RouterMessage> for RouterMessage
[src]fn eq(&self, other: &RouterMessage) -> bool
[src]
fn ne(&self, other: &RouterMessage) -> bool
[src]
impl PartialOrd<RouterMessage> for RouterMessage
[src]
impl PartialOrd<RouterMessage> for RouterMessage
[src]fn partial_cmp(&self, other: &RouterMessage) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl Serialize for RouterMessage
[src]
impl Serialize for RouterMessage
[src]impl StructuralEq for RouterMessage
[src]
impl StructuralEq for RouterMessage
[src]impl StructuralPartialEq for RouterMessage
[src]
impl StructuralPartialEq for RouterMessage
[src]Auto Trait Implementations
impl RefUnwindSafe for RouterMessage
impl RefUnwindSafe for RouterMessage
impl Send for RouterMessage
impl Send for RouterMessage
impl Sync for RouterMessage
impl Sync for RouterMessage
impl Unpin for RouterMessage
impl Unpin for RouterMessage
impl UnwindSafe for RouterMessage
impl UnwindSafe for RouterMessage
Blanket Implementations
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]pub fn borrow(&self) -> &TⓘNotable traits for &'_ mut I
impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized,
[src]
Notable traits for &'_ mut I
impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut I
impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized,
[src]
Notable traits for &'_ mut I
impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,