pub struct ap_cred {
pub ssid: Vec<u8, 33>,
pub passphrase: Vec<u8, 64>,
}
Fields§
§ssid: Vec<u8, 33>
§passphrase: Vec<u8, 64>
Implementations§
Source§impl ap_cred
impl ap_cred
Sourcepub fn init_ssid(self, value: Vec<u8, 33>) -> Self
pub fn init_ssid(self, value: Vec<u8, 33>) -> Self
Builder method that sets the value of ssid
. Useful for initializing the message.
Sourcepub fn passphrase(&self) -> &Vec<u8, 64>
pub fn passphrase(&self) -> &Vec<u8, 64>
Return a reference to passphrase
Sourcepub fn mut_passphrase(&mut self) -> &mut Vec<u8, 64>
pub fn mut_passphrase(&mut self) -> &mut Vec<u8, 64>
Return a mutable reference to passphrase
Sourcepub fn set_passphrase(&mut self, value: Vec<u8, 64>) -> &mut Self
pub fn set_passphrase(&mut self, value: Vec<u8, 64>) -> &mut Self
Set the value of passphrase
Sourcepub fn init_passphrase(self, value: Vec<u8, 64>) -> Self
pub fn init_passphrase(self, value: Vec<u8, 64>) -> Self
Builder method that sets the value of passphrase
. Useful for initializing the message.
Trait Implementations§
Source§impl MessageDecode for ap_cred
impl MessageDecode for ap_cred
Source§fn decode<IMPL_MICROPB_READ: PbRead>(
&mut self,
decoder: &mut PbDecoder<IMPL_MICROPB_READ>,
len: usize,
) -> Result<(), DecodeError<IMPL_MICROPB_READ::Error>>
fn decode<IMPL_MICROPB_READ: PbRead>( &mut self, decoder: &mut PbDecoder<IMPL_MICROPB_READ>, len: usize, ) -> Result<(), DecodeError<IMPL_MICROPB_READ::Error>>
Decode an instance of the message from the decoder and merge it into
self
. Read moreSource§fn decode_from_bytes(
&mut self,
bytes: &[u8],
) -> Result<(), DecodeError<Infallible>>
fn decode_from_bytes( &mut self, bytes: &[u8], ) -> Result<(), DecodeError<Infallible>>
Decode an instance of the message from the provided bytes
Source§fn decode_len_delimited<R>(
&mut self,
decoder: &mut PbDecoder<R>,
) -> Result<(), DecodeError<<R as PbRead>::Error>>where
R: PbRead,
fn decode_len_delimited<R>(
&mut self,
decoder: &mut PbDecoder<R>,
) -> Result<(), DecodeError<<R as PbRead>::Error>>where
R: PbRead,
Decode an instance of the message from the decoder as a length-delimited record, starting with a length
prefix.
Source§impl MessageEncode for ap_cred
impl MessageEncode for ap_cred
impl StructuralPartialEq for ap_cred
Auto Trait Implementations§
impl Freeze for ap_cred
impl RefUnwindSafe for ap_cred
impl Send for ap_cred
impl Sync for ap_cred
impl Unpin for ap_cred
impl UnwindSafe for ap_cred
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more