Struct tftp::BufAtMost512 [−][src]
pub struct BufAtMost512<'b>(_);
Buffer, that is at most 512 bytes in size.
In TFTP terms, a data buffer that is exactly 512 bytes in len
means, that client should await for at least one more data block until
finally receiving “incomplete” buffer with less than 512 bytes len.
You can use is_incomplete
to conveniently check for such a situation.
Implementations
impl<'b> BufAtMost512<'b>
[src]
pub fn is_incomplete(&self) -> bool
[src]
Check if buffer is less than 512 bytes in size.
Trait Implementations
impl<'b> AsRef<[u8]> for BufAtMost512<'b>
[src]
impl<'b> Debug for BufAtMost512<'b>
[src]
impl<'b> From<&'b [u8; 512]> for BufAtMost512<'b>
[src]
impl<'b> TryFrom<&'b [u8]> for BufAtMost512<'b>
[src]
Auto Trait Implementations
impl<'b> RefUnwindSafe for BufAtMost512<'b>
impl<'b> Send for BufAtMost512<'b>
impl<'b> Sync for BufAtMost512<'b>
impl<'b> Unpin for BufAtMost512<'b>
impl<'b> UnwindSafe for BufAtMost512<'b>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,