Struct zmtp::Greeting
[−]
[src]
pub struct Greeting { pub signature: [u8; 10], pub version: (u8, u8), pub mechanism: [u8; 20], pub as_server: bool, pub filler: [u8; 31], }
Fields
signature: [u8; 10]
version: (u8, u8)
mechanism: [u8; 20]
as_server: bool
filler: [u8; 31]
Methods
impl Greeting
[src]
fn new() -> Self
fn signature(&mut self, padding: &[u8]) -> &mut Self
fn version(&mut self, major: u8, minor: u8) -> &mut Self
fn mechanism(&mut self, mechanism: &[u8]) -> &mut Self
fn as_server(&mut self, as_server: bool) -> &mut Self
fn filler(&mut self, filler: &[u8]) -> &mut Self
Trait Implementations
impl PartialEq for Greeting
[src]
fn eq(&self, __arg_0: &Greeting) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Greeting) -> bool
This method tests for !=
.
impl Eq for Greeting
[src]
impl Debug for Greeting
[src]
impl Clone for Greeting
[src]
fn clone(&self) -> Greeting
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more