Struct cassandra_protocol::types::CInet
source · [−]pub struct CInet {
pub addr: SocketAddr,
}
Expand description
The structure which represents Cassandra inet (https://github.com/apache/cassandra/blob/trunk/doc/native_protocol_v4.spec).
Fields
addr: SocketAddr
Implementations
Trait Implementations
sourceimpl FromCursor for CInet
impl FromCursor for CInet
sourcefn from_cursor(cursor: &mut Cursor<&[u8]>) -> CDRSResult<CInet>
fn from_cursor(cursor: &mut Cursor<&[u8]>) -> CDRSResult<CInet>
It should return an implementor from an io::Cursor
over an array of bytes.
sourceimpl Ord for CInet
impl Ord for CInet
sourceimpl PartialOrd<CInet> for CInet
impl PartialOrd<CInet> for CInet
sourcefn partial_cmp(&self, other: &CInet) -> Option<Ordering>
fn partial_cmp(&self, other: &CInet) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for CInet
impl Eq for CInet
impl StructuralEq for CInet
impl StructuralPartialEq for CInet
Auto Trait Implementations
impl RefUnwindSafe for CInet
impl Send for CInet
impl Sync for CInet
impl Unpin for CInet
impl UnwindSafe for CInet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more