Struct binary_layout::example::icmp_packet::View [−][src]
pub struct View<S> { /* fields omitted */ }The View struct defines the FieldView API. An instance of View wraps a storage (either borrowed or owned) and allows accessors for the layout fields.
Implementations
impl<S> View<S>[src]
impl<S> View<S>[src]pub fn new(storage: S) -> Self[src]
pub fn into_storage(self) -> S[src]
pub fn into_packet_type(self) -> FieldView<S, packet_type>[src]
pub fn into_code(self) -> FieldView<S, code>[src]
pub fn into_checksum(self) -> FieldView<S, checksum>[src]
pub fn into_rest_of_header(self) -> FieldView<S, rest_of_header>[src]
pub fn into_data_section(self) -> FieldView<S, data_section>[src]
impl<S: AsRef<[u8]>> View<S>[src]
impl<S: AsRef<[u8]>> View<S>[src]pub fn packet_type(&self) -> FieldView<&[u8], packet_type>[src]
pub fn code(&self) -> FieldView<&[u8], code>[src]
pub fn checksum(&self) -> FieldView<&[u8], checksum>[src]
pub fn rest_of_header(&self) -> FieldView<&[u8], rest_of_header>[src]
pub fn data_section(&self) -> FieldView<&[u8], data_section>[src]
impl<S: AsMut<[u8]>> View<S>[src]
impl<S: AsMut<[u8]>> View<S>[src]pub fn packet_type_mut(&mut self) -> FieldView<&mut [u8], packet_type>[src]
pub fn code_mut(&mut self) -> FieldView<&mut [u8], code>[src]
pub fn checksum_mut(&mut self) -> FieldView<&mut [u8], checksum>[src]
pub fn rest_of_header_mut(&mut self) -> FieldView<&mut [u8], rest_of_header>[src]
pub fn data_section_mut(&mut self) -> FieldView<&mut [u8], data_section>[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for View<S> where
S: RefUnwindSafe,
impl<S> RefUnwindSafe for View<S> where
S: RefUnwindSafe, impl<S> UnwindSafe for View<S> where
S: UnwindSafe,
impl<S> UnwindSafe for View<S> where
S: UnwindSafe,