[][src]Struct libzmq::Group

pub struct Group { /* fields omitted */ }

A str slice that is a valid ØMQ group identifier.

Namely, the length this group identifier must not exceed MAX_GROUP_SIZE.

Example

use libzmq::Group;
use std::convert::TryInto;

let group: &Group = "some group".try_into()?;

let result: Result<&Group, _> = "group that exceed the char limit".try_into();
assert!(result.is_err());

Methods

impl Group[src]

pub fn as_str(&self) -> &str[src]

Trait Implementations

impl PartialEq<Group> for Group[src]

impl PartialEq<str> for Group[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<Group> for str[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<'a> PartialEq<GroupOwned> for Group[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<'a> PartialEq<Group> for GroupOwned[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl AsRef<str> for Group[src]

impl AsRef<Group> for GroupOwned[src]

impl<'a> From<&'a GroupOwned> for &'a Group[src]

impl<'a> From<&'a Group> for GroupOwned[src]

impl ToOwned for Group[src]

type Owned = GroupOwned

The resulting type after obtaining ownership.

fn clone_into(&self, target: &mut Self::Owned)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<'a> IntoIterator for &'a Group[src]

type Item = &'a Group

The type of the elements being iterated over.

type IntoIter = IntoIter<&'a Group>

Which kind of iterator are we turning this into?

impl Eq for Group[src]

impl Debug for Group[src]

impl<'a> Display for &'a Group[src]

impl<'a> TryFrom<&'a str> for &'a Group[src]

type Error = GroupParseError

The type returned in the event of a conversion error.

impl<'a> TryFrom<&'a String> for &'a Group[src]

type Error = GroupParseError

The type returned in the event of a conversion error.

impl Deref for Group[src]

type Target = str

The resulting type after dereferencing.

impl Hash for Group[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Borrow<Group> for GroupOwned[src]

Auto Trait Implementations

impl Send for Group

impl Sync for Group

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]