[−][src]Enum cord_message::Message
Variants
Provide(Pattern)
Revoke(Pattern)
Subscribe(Pattern)
Unsubscribe(Pattern)
Methods
impl Message
[src]
pub fn test_poor_mans_discriminant(discriminant: &u8) -> bool
[src]
pub fn from_poor_mans_discriminant(
discriminant: u8,
namespace: Pattern,
data: Option<String>
) -> Self
[src]
discriminant: u8,
namespace: Pattern,
data: Option<String>
) -> Self
pub fn unwrap_provide(self) -> Pattern
[src]
pub fn unwrap_revoke(self) -> Pattern
[src]
pub fn unwrap_subscribe(self) -> Pattern
[src]
pub fn unwrap_unsubscribe(self) -> Pattern
[src]
pub fn namespace(&self) -> &Pattern
[src]
pub fn poor_mans_discriminant(&self) -> u8
[src]
pub fn contains(&self, other: &Message) -> bool
[src]
Trait Implementations
impl Clone for Message
[src]
impl Debug for Message
[src]
impl Encoder<Message> for Codec
[src]
type Error = Error
The type of encoding errors. Read more
fn encode(
&mut self,
message: Message,
dst: &mut BytesMut
) -> StdResult<(), Self::Error>
[src]
&mut self,
message: Message,
dst: &mut BytesMut
) -> StdResult<(), Self::Error>
impl Eq for Message
[src]
impl Hash for Message
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Message> for Message
[src]
impl StructuralEq for Message
[src]
impl StructuralPartialEq for Message
[src]
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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>,