1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
use std::io::Cursor;
use FromCursor;
use types::CBytes;

/// A server authentication challenge.
#[derive(Debug)]
pub struct BodyResAuthChallenge {
    pub data: CBytes
}

impl FromCursor for BodyResAuthChallenge {
    fn from_cursor(mut cursor: &mut Cursor<Vec<u8>>) -> BodyResAuthChallenge {
        return BodyResAuthChallenge {
            data: CBytes::from_cursor(&mut cursor)
        };
    }
}