[][src]Struct libzmq::GroupOwned

pub struct GroupOwned { /* fields omitted */ }

An owned String that is a valid ØMQ group identifier.

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

Example

use libzmq::GroupOwned;
use std::convert::TryInto;

let string = "abc".to_owned();

let group: GroupOwned = string.try_into()?;
assert_eq!(group.as_str(), "abc");

Methods from Deref<Target = Group>

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

Trait Implementations

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

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

This method tests for !=.

impl PartialEq<GroupOwned> for GroupOwned[src]

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

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

This method tests for !=.

impl PartialEq<str> for GroupOwned[src]

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

This method tests for !=.

impl PartialEq<GroupOwned> for str[src]

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

This method tests for !=.

impl<'a> PartialEq<&'a str> for GroupOwned[src]

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

This method tests for !=.

impl<'a> PartialEq<GroupOwned> for &'a str[src]

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

This method tests for !=.

impl AsRef<Group> for GroupOwned[src]

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

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

impl From<GroupOwned> for String[src]

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

impl Clone for GroupOwned[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl IntoIterator for GroupOwned[src]

type Item = GroupOwned

The type of the elements being iterated over.

type IntoIter = IntoIter<GroupOwned>

Which kind of iterator are we turning this into?

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

type Item = &'a GroupOwned

The type of the elements being iterated over.

type IntoIter = IntoIter<&'a GroupOwned>

Which kind of iterator are we turning this into?

impl Eq for GroupOwned[src]

impl Debug for GroupOwned[src]

impl Display for GroupOwned[src]

impl FromStr for GroupOwned[src]

type Err = GroupParseError

The associated error which can be returned from parsing.

impl TryFrom<String> for GroupOwned[src]

type Error = GroupParseError

The type returned in the event of a conversion error.

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

type Error = GroupParseError

The type returned in the event of a conversion error.

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

type Error = GroupParseError

The type returned in the event of a conversion error.

impl Deref for GroupOwned[src]

type Target = Group

The resulting type after dereferencing.

impl Hash for GroupOwned[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]

impl Serialize for GroupOwned[src]

impl<'de> Deserialize<'de> for GroupOwned[src]

Auto Trait Implementations

impl Send for GroupOwned

impl Sync for GroupOwned

Blanket Implementations

impl<T> From<T> for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]